mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Cleanup the mess in msp430 target registration and hopefully unbreak the build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a0b165cb5
commit
9b9014f2a0
@ -242,9 +242,7 @@ void MSP430AsmPrinter::printCCOperand(const MachineInstr *MI, int OpNum) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void LLVMInitializeMSP430Target() {
|
// Force static initialization.
|
||||||
// Register the target.
|
extern "C" void LLVMInitializeMSP430AsmPrinter() {
|
||||||
RegisterTargetMachine<MSP430TargetMachine> X(TheMSP430Target);
|
RegisterAsmPrinter<MSP430AsmPrinter> X(TheMSP430Target);
|
||||||
RegisterAsmPrinter<MSP430AsmPrinter> Y(TheMSP430Target);
|
|
||||||
RegisterAsmInfo<MSP430TargetAsmInfo> Z(TheMSP430Target);
|
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,15 @@
|
|||||||
#include "llvm/PassManager.h"
|
#include "llvm/PassManager.h"
|
||||||
#include "llvm/CodeGen/Passes.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
#include "llvm/Target/TargetAsmInfo.h"
|
#include "llvm/Target/TargetAsmInfo.h"
|
||||||
|
#include "llvm/Target/TargetRegistry.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
extern "C" void LLVMInitializeMSP430Target() {
|
||||||
|
// Register the target.
|
||||||
|
RegisterTargetMachine<MSP430TargetMachine> X(TheMSP430Target);
|
||||||
|
RegisterAsmInfo<MSP430TargetAsmInfo> Z(TheMSP430Target);
|
||||||
|
}
|
||||||
|
|
||||||
MSP430TargetMachine::MSP430TargetMachine(const Target &T,
|
MSP430TargetMachine::MSP430TargetMachine(const Target &T,
|
||||||
const std::string &TT,
|
const std::string &TT,
|
||||||
const std::string &FS) :
|
const std::string &FS) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user