mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair broken LLVM-GCC build.
Will revert 75770 in the llvm-gcc trunk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,17 +32,14 @@ int MSP430TargetMachineModule = 0;
|
||||
|
||||
|
||||
// Register the targets
|
||||
extern Target TheMSP430Target;
|
||||
static RegisterTarget<MSP430TargetMachine>
|
||||
X(TheMSP430Target, "msp430", "MSP430 [experimental]");
|
||||
X("msp430", "MSP430 [experimental]");
|
||||
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializeMSP430Target() { }
|
||||
|
||||
MSP430TargetMachine::MSP430TargetMachine(const Target &T,
|
||||
const Module &M,
|
||||
MSP430TargetMachine::MSP430TargetMachine(const Module &M,
|
||||
const std::string &FS) :
|
||||
LLVMTargetMachine(T),
|
||||
Subtarget(*this, M, FS),
|
||||
// FIXME: Check TargetData string.
|
||||
DataLayout("e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"),
|
||||
@@ -69,3 +66,14 @@ bool MSP430TargetMachine::addAssemblyEmitter(PassManagerBase &PM,
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned MSP430TargetMachine::getModuleMatchQuality(const Module &M) {
|
||||
std::string TT = M.getTargetTriple();
|
||||
|
||||
// We strongly match msp430
|
||||
if (TT.size() >= 6 && TT[0] == 'm' && TT[1] == 's' && TT[2] == 'p' &&
|
||||
TT[3] == '4' && TT[4] == '3' && TT[5] == '0')
|
||||
return 20;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user