Cleanup the mess in msp430 target registration and hopefully unbreak the build
llvm-svn: 79024
This commit is contained in:
parent
ac74c4c2a1
commit
c1524d442d
|
@ -242,9 +242,7 @@ void MSP430AsmPrinter::printCCOperand(const MachineInstr *MI, int OpNum) {
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeMSP430Target() {
|
||||
// Register the target.
|
||||
RegisterTargetMachine<MSP430TargetMachine> X(TheMSP430Target);
|
||||
RegisterAsmPrinter<MSP430AsmPrinter> Y(TheMSP430Target);
|
||||
RegisterAsmInfo<MSP430TargetAsmInfo> Z(TheMSP430Target);
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializeMSP430AsmPrinter() {
|
||||
RegisterAsmPrinter<MSP430AsmPrinter> X(TheMSP430Target);
|
||||
}
|
||||
|
|
|
@ -17,8 +17,15 @@
|
|||
#include "llvm/PassManager.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Target/TargetAsmInfo.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
extern "C" void LLVMInitializeMSP430Target() {
|
||||
// Register the target.
|
||||
RegisterTargetMachine<MSP430TargetMachine> X(TheMSP430Target);
|
||||
RegisterAsmInfo<MSP430TargetAsmInfo> Z(TheMSP430Target);
|
||||
}
|
||||
|
||||
MSP430TargetMachine::MSP430TargetMachine(const Target &T,
|
||||
const std::string &TT,
|
||||
const std::string &FS) :
|
||||
|
|
Loading…
Reference in New Issue