summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/TargetInfo
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
commitd6fd377f3333922c4e928019cdfa124ff7f4dd2e (patch)
treeda15e380d88d8a3072e1d8cf434f424880b0a2ce /lib/Target/SystemZ/TargetInfo
parente0d12d5f7b0a6369df128c8b0cc43e6e08a804a0 (diff)
downloadllvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.gz
llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.bz2
llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.xz
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/SystemZ/TargetInfo')
-rw-r--r--lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp b/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
index 09cb9c3f40..49c8e19b3a 100644
--- a/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
+++ b/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
@@ -1,4 +1,4 @@
-//===-- SystemZTargetInfo.cpp - SystemZ Target Implementation -----------------===//
+//===-- SystemZTargetInfo.cpp - SystemZ Target Implementation -------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -14,10 +14,6 @@ using namespace llvm;
Target llvm::TheSystemZTarget;
-static unsigned SystemZ_JITMatchQuality() {
- return 0;
-}
-
static unsigned SystemZ_TripleMatchQuality(const std::string &TT) {
// We strongly match s390x
if (TT.size() >= 5 && TT[0] == 's' && TT[1] == '3' && TT[2] == '9' &&
@@ -40,6 +36,5 @@ extern "C" void LLVMInitializeSystemZTargetInfo() {
TargetRegistry::RegisterTarget(TheSystemZTarget, "systemz",
"SystemZ",
&SystemZ_TripleMatchQuality,
- &SystemZ_ModuleMatchQuality,
- &SystemZ_JITMatchQuality);
+ &SystemZ_ModuleMatchQuality);
}