[llvm-commits] [llvm] r78710 - in /llvm/trunk/lib/Target/Mips: MipsTargetAsmInfo.cpp MipsTargetAsmInfo.h MipsTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Tue Aug 11 13:32:51 PDT 2009
Author: lattner
Date: Tue Aug 11 15:32:51 2009
New Revision: 78710
URL: http://llvm.org/viewvc/llvm-project?rev=78710&view=rev
Log:
now that JumpTableDirective can differentate picness itself, MIPS TAI
no longer needs a targetmachine to initialize itself.
Modified:
llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.h
llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp?rev=78710&r1=78709&r2=78710&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp Tue Aug 11 15:32:51 2009
@@ -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";
Modified: llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.h?rev=78710&r1=78709&r2=78710&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.h Tue Aug 11 15:32:51 2009
@@ -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
Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=78710&r1=78709&r2=78710&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Tue Aug 11 15:32:51 2009
@@ -24,10 +24,8 @@
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
More information about the llvm-commits
mailing list