diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:32:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:32:51 +0000 |
commit | 92319e24549a4855a4b09bf7a71660296bf75b2d (patch) | |
tree | c908b9eeb2a6949d0d70bcc6651a1be8a8dbb9da /lib/Target | |
parent | dfab291702a9c6e88981047bf6a3fe42f7d508b0 (diff) | |
download | external_llvm-92319e24549a4855a4b09bf7a71660296bf75b2d.zip external_llvm-92319e24549a4855a4b09bf7a71660296bf75b2d.tar.gz external_llvm-92319e24549a4855a4b09bf7a71660296bf75b2d.tar.bz2 |
now that JumpTableDirective can differentate picness itself, MIPS TAI
no longer needs a targetmachine to initialize itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/Mips/MipsTargetAsmInfo.cpp | 3 | ||||
-rw-r--r-- | lib/Target/Mips/MipsTargetAsmInfo.h | 8 | ||||
-rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 6 |
3 files changed, 6 insertions, 11 deletions
diff --git a/lib/Target/Mips/MipsTargetAsmInfo.cpp b/lib/Target/Mips/MipsTargetAsmInfo.cpp index 8cb58c8..f587172 100644 --- a/lib/Target/Mips/MipsTargetAsmInfo.cpp +++ b/lib/Target/Mips/MipsTargetAsmInfo.cpp @@ -12,10 +12,9 @@ //===----------------------------------------------------------------------===// #include "MipsTargetAsmInfo.h" -#include "MipsTargetMachine.h" using namespace llvm; -MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) { +MipsTargetAsmInfo::MipsTargetAsmInfo() { AlignmentIsInBytes = false; COMMDirectiveTakesAlignment = true; Data16bitsDirective = "\t.half\t"; diff --git a/lib/Target/Mips/MipsTargetAsmInfo.h b/lib/Target/Mips/MipsTargetAsmInfo.h index cbfb50e..32e98df 100644 --- a/lib/Target/Mips/MipsTargetAsmInfo.h +++ b/lib/Target/Mips/MipsTargetAsmInfo.h @@ -17,11 +17,9 @@ #include "llvm/Target/TargetAsmInfo.h" namespace llvm { - // Forward declaration. - class MipsTargetMachine; - - struct MipsTargetAsmInfo : public TargetAsmInfo { - explicit MipsTargetAsmInfo(const MipsTargetMachine &TM); + class MipsTargetAsmInfo : public TargetAsmInfo { + public: + explicit MipsTargetAsmInfo(); }; } // namespace llvm diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index a74af26..a397756 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -24,10 +24,8 @@ extern "C" void LLVMInitializeMipsTarget() { RegisterTargetMachine<MipselTargetMachine> Y(TheMipselTarget); } -const TargetAsmInfo *MipsTargetMachine:: -createTargetAsmInfo() const -{ - return new MipsTargetAsmInfo(*this); +const TargetAsmInfo *MipsTargetMachine::createTargetAsmInfo() const { + return new MipsTargetAsmInfo(); } // DataLayout --> Big-endian, 32-bit pointer/ABI/alignment |