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

@@ -26,17 +26,6 @@ static unsigned Mips_TripleMatchQuality(const std::string &TT) {
return 0;
}
static unsigned Mips_ModuleMatchQuality(const Module &M) {
// Check for a triple match.
if (unsigned Q = Mips_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;
}
Target llvm::TheMipselTarget;
static unsigned Mipsel_TripleMatchQuality(const std::string &TT) {
@@ -54,25 +43,12 @@ static unsigned Mipsel_TripleMatchQuality(const std::string &TT) {
return 0;
}
static unsigned Mipsel_ModuleMatchQuality(const Module &M) {
// Check for a triple match.
if (unsigned Q = Mipsel_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 LLVMInitializeMipsTargetInfo() {
TargetRegistry::RegisterTarget(TheMipsTarget, "mips",
"Mips",
&Mips_TripleMatchQuality,
&Mips_ModuleMatchQuality);
&Mips_TripleMatchQuality);
TargetRegistry::RegisterTarget(TheMipselTarget, "mipsel",
"Mipsel",
&Mipsel_TripleMatchQuality,
&Mipsel_ModuleMatchQuality);
&Mipsel_TripleMatchQuality);
}