diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:30:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:30:59 +0000 |
| commit | 361da8a694f14f3e1f2b7612639f94dce1e286d7 (patch) | |
| tree | 906eb6af6dbe0d647d49126949a44deb30a18b66 /lib/Target/Sparc | |
| parent | 7dd4ffc0a889f3c4ee0c3454ea37502466955293 (diff) | |
| download | external_llvm-361da8a694f14f3e1f2b7612639f94dce1e286d7.zip external_llvm-361da8a694f14f3e1f2b7612639f94dce1e286d7.tar.gz external_llvm-361da8a694f14f3e1f2b7612639f94dce1e286d7.tar.bz2 | |
eliminate TargetMAchine argument to sparc TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
| -rw-r--r-- | lib/Target/Sparc/SparcTargetAsmInfo.cpp | 4 | ||||
| -rw-r--r-- | lib/Target/Sparc/SparcTargetAsmInfo.h | 5 | ||||
| -rw-r--r-- | lib/Target/Sparc/SparcTargetMachine.cpp | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.cpp b/lib/Target/Sparc/SparcTargetAsmInfo.cpp index 6c57792..4a5f66c 100644 --- a/lib/Target/Sparc/SparcTargetAsmInfo.cpp +++ b/lib/Target/Sparc/SparcTargetAsmInfo.cpp @@ -1,4 +1,4 @@ -//===-- SparcTargetAsmInfo.cpp - Sparc asm properties -----------*- C++ -*-===// +//===-- SparcTargetAsmInfo.cpp - Sparc asm properties ---------------------===// // // The LLVM Compiler Infrastructure // @@ -15,7 +15,7 @@ #include "llvm/ADT/SmallVector.h" using namespace llvm; -SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM) { +SparcELFTargetAsmInfo::SparcELFTargetAsmInfo() { Data16bitsDirective = "\t.half\t"; Data32bitsDirective = "\t.word\t"; Data64bitsDirective = 0; // .xword is only supported by V9. diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.h b/lib/Target/Sparc/SparcTargetAsmInfo.h index 4c1266a..255a2df 100644 --- a/lib/Target/Sparc/SparcTargetAsmInfo.h +++ b/lib/Target/Sparc/SparcTargetAsmInfo.h @@ -18,11 +18,8 @@ namespace llvm { - // Forward declaration. - class TargetMachine; - struct SparcELFTargetAsmInfo : public TargetAsmInfo { - explicit SparcELFTargetAsmInfo(const TargetMachine &TM); + explicit SparcELFTargetAsmInfo(); }; } // namespace llvm diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp index 0605db3..17a419f 100644 --- a/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/lib/Target/Sparc/SparcTargetMachine.cpp @@ -25,7 +25,7 @@ extern "C" void LLVMInitializeSparcTarget() { const TargetAsmInfo *SparcTargetMachine::createTargetAsmInfo() const { // FIXME: Handle Solaris subtarget someday :) - return new SparcELFTargetAsmInfo(*this); + return new SparcELFTargetAsmInfo(); } /// SparcTargetMachine ctor - Create an ILP32 architecture model |
