summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 10:09:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 10:09:50 +0000
commit691a4784db7a1319571e84fc4cfc4cd63a3b82dd (patch)
tree44f3402afe41eceac7db022418d5ffd4e128a3d9 /llvm/lib/Target/Sparc
parent3c2da2bb7ed6c55f9960fb2779cf09382a95b1ac (diff)
downloadbcm5719-llvm-691a4784db7a1319571e84fc4cfc4cd63a3b82dd.tar.gz
bcm5719-llvm-691a4784db7a1319571e84fc4cfc4cd63a3b82dd.zip
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. llvm-svn: 77060
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp b/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
index 131bdcc35b4..a2f1e5ddfd0 100644
--- a/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
+++ b/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
@@ -14,10 +14,6 @@ using namespace llvm;
Target llvm::TheSparcTarget;
-static unsigned Sparc_JITMatchQuality() {
- return 0;
-}
-
static unsigned Sparc_TripleMatchQuality(const std::string &TT) {
if (TT.size() >= 6 && std::string(TT.begin(), TT.begin()+6) == "sparc-")
return 20;
@@ -57,6 +53,5 @@ extern "C" void LLVMInitializeSparcTargetInfo() {
TargetRegistry::RegisterTarget(TheSparcTarget, "sparc",
"Sparc",
&Sparc_TripleMatchQuality,
- &Sparc_ModuleMatchQuality,
- &Sparc_JITMatchQuality);
+ &Sparc_ModuleMatchQuality);
}
OpenPOWER on IntegriCloud