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:
Daniel Dunbar
2009-07-26 02:22:58 +00:00
parent a5881e3060
commit fa27ff296d
16 changed files with 13 additions and 286 deletions

View File

@@ -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);
}