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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user