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 | 123157a91a9c00c42cc7a91b03b4ed2db0b6d197 (patch) | |
tree | da15e380d88d8a3072e1d8cf434f424880b0a2ce /lib/Target/XCore/TargetInfo | |
parent | 8506f890067d0c6a84e630c2651fbd595074b235 (diff) | |
download | external_llvm-123157a91a9c00c42cc7a91b03b4ed2db0b6d197.zip external_llvm-123157a91a9c00c42cc7a91b03b4ed2db0b6d197.tar.gz external_llvm-123157a91a9c00c42cc7a91b03b4ed2db0b6d197.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/XCore/TargetInfo')
-rw-r--r-- | lib/Target/XCore/TargetInfo/XCoreTargetInfo.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/XCore/TargetInfo/XCoreTargetInfo.cpp b/lib/Target/XCore/TargetInfo/XCoreTargetInfo.cpp index 9dec792..48ad484 100644 --- a/lib/Target/XCore/TargetInfo/XCoreTargetInfo.cpp +++ b/lib/Target/XCore/TargetInfo/XCoreTargetInfo.cpp @@ -14,10 +14,6 @@ using namespace llvm; Target llvm::TheXCoreTarget; -static unsigned XCore_JITMatchQuality() { - return 0; -} - static unsigned XCore_TripleMatchQuality(const std::string &TT) { if (TT.size() >= 6 && std::string(TT.begin(), TT.begin()+6) == "xcore-") return 20; @@ -38,6 +34,5 @@ extern "C" void LLVMInitializeXCoreTargetInfo() { TargetRegistry::RegisterTarget(TheXCoreTarget, "xcore", "XCore", &XCore_TripleMatchQuality, - &XCore_ModuleMatchQuality, - &XCore_JITMatchQuality); + &XCore_ModuleMatchQuality); } |