diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:09:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:09:50 +0000 |
commit | d6fd377f3333922c4e928019cdfa124ff7f4dd2e (patch) | |
tree | da15e380d88d8a3072e1d8cf434f424880b0a2ce /lib/Target/Mips/TargetInfo | |
parent | e0d12d5f7b0a6369df128c8b0cc43e6e08a804a0 (diff) | |
download | external_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.zip external_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.gz external_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.bz2 |
Simplify JIT target selection.
- Instead of requiring targets to define a JIT quality match function, we just
have them specify if they support a JIT.
- Target selection for the JIT just gets the host triple and looks for the best
target which matches the triple and has a JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/TargetInfo')
-rw-r--r-- | lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp b/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp index 1188a74..35cbf8b 100644 --- a/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp +++ b/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp @@ -14,10 +14,6 @@ using namespace llvm; Target llvm::TheMipsTarget; -static unsigned Mips_JITMatchQuality() { - return 0; -} - static unsigned Mips_TripleMatchQuality(const std::string &TT) { // We strongly match "mips*-*". if (TT.size() >= 5 && std::string(TT.begin(), TT.begin()+5) == "mips-") @@ -43,10 +39,6 @@ static unsigned Mips_ModuleMatchQuality(const Module &M) { Target llvm::TheMipselTarget; -static unsigned Mipsel_JITMatchQuality() { - return 0; -} - static unsigned Mipsel_TripleMatchQuality(const std::string &TT) { // We strongly match "mips*el-*". if (TT.size() >= 7 && std::string(TT.begin(), TT.begin()+7) == "mipsel-") @@ -77,12 +69,10 @@ extern "C" void LLVMInitializeMipsTargetInfo() { TargetRegistry::RegisterTarget(TheMipsTarget, "mips", "Mips", &Mips_TripleMatchQuality, - &Mips_ModuleMatchQuality, - &Mips_JITMatchQuality); + &Mips_ModuleMatchQuality); TargetRegistry::RegisterTarget(TheMipselTarget, "mipsel", "Mipsel", &Mipsel_TripleMatchQuality, - &Mipsel_ModuleMatchQuality, - &Mipsel_JITMatchQuality); + &Mipsel_ModuleMatchQuality); } |