diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 02:22:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 02:22:58 +0000 |
commit | fa27ff296d3694a68e7abb3b6b7629588def3e58 (patch) | |
tree | 2a8122cc81a121aaf66245f276761d12dd92bca0 /lib/Target/Mips/TargetInfo | |
parent | a5881e3060aee9f82aef3747a97650e5eafe893a (diff) | |
download | external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.zip external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.tar.gz external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.tar.bz2 |
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
Diffstat (limited to 'lib/Target/Mips/TargetInfo')
-rw-r--r-- | lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp b/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp index 35cbf8b..4f07545 100644 --- a/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp +++ b/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp @@ -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); } |