forked from OSchip/llvm-project
now that JumpTableDirective can differentate picness itself, MIPS TAI
no longer needs a targetmachine to initialize itself. llvm-svn: 78710
This commit is contained in:
parent
fe27130454
commit
67e5ea2726
|
@ -12,10 +12,9 @@
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "MipsTargetAsmInfo.h"
|
#include "MipsTargetAsmInfo.h"
|
||||||
#include "MipsTargetMachine.h"
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
|
MipsTargetAsmInfo::MipsTargetAsmInfo() {
|
||||||
AlignmentIsInBytes = false;
|
AlignmentIsInBytes = false;
|
||||||
COMMDirectiveTakesAlignment = true;
|
COMMDirectiveTakesAlignment = true;
|
||||||
Data16bitsDirective = "\t.half\t";
|
Data16bitsDirective = "\t.half\t";
|
||||||
|
|
|
@ -17,11 +17,9 @@
|
||||||
#include "llvm/Target/TargetAsmInfo.h"
|
#include "llvm/Target/TargetAsmInfo.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
// Forward declaration.
|
class MipsTargetAsmInfo : public TargetAsmInfo {
|
||||||
class MipsTargetMachine;
|
public:
|
||||||
|
explicit MipsTargetAsmInfo();
|
||||||
struct MipsTargetAsmInfo : public TargetAsmInfo {
|
|
||||||
explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
|
@ -24,10 +24,8 @@ extern "C" void LLVMInitializeMipsTarget() {
|
||||||
RegisterTargetMachine<MipselTargetMachine> Y(TheMipselTarget);
|
RegisterTargetMachine<MipselTargetMachine> Y(TheMipselTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
const TargetAsmInfo *MipsTargetMachine::
|
const TargetAsmInfo *MipsTargetMachine::createTargetAsmInfo() const {
|
||||||
createTargetAsmInfo() const
|
return new MipsTargetAsmInfo();
|
||||||
{
|
|
||||||
return new MipsTargetAsmInfo(*this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DataLayout --> Big-endian, 32-bit pointer/ABI/alignment
|
// DataLayout --> Big-endian, 32-bit pointer/ABI/alignment
|
||||||
|
|
Loading…
Reference in New Issue