mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Kill Target specific ModuleMatchQuality stuff.
- This was overkill and inconsistently implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,20 +23,8 @@ static unsigned MSP430_TripleMatchQuality(const std::string &TT) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned MSP430_ModuleMatchQuality(const Module &M) {
|
||||
// Check for a triple match.
|
||||
if (unsigned Q = MSP430_TripleMatchQuality(M.getTargetTriple()))
|
||||
return Q;
|
||||
|
||||
// Otherwise if the target triple is non-empty, we don't match.
|
||||
if (!M.getTargetTriple().empty()) return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeMSP430TargetInfo() {
|
||||
TargetRegistry::RegisterTarget(TheMSP430Target, "msp430",
|
||||
"MSP430 [experimental]",
|
||||
&MSP430_TripleMatchQuality,
|
||||
&MSP430_ModuleMatchQuality);
|
||||
&MSP430_TripleMatchQuality);
|
||||
}
|
||||
|
Reference in New Issue
Block a user