From d6fd377f3333922c4e928019cdfa124ff7f4dd2e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 25 Jul 2009 10:09:50 +0000 Subject: 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 --- lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/Target/Sparc/TargetInfo') diff --git a/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp b/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp index 131bdcc..a2f1e5d 100644 --- a/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp +++ b/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); } -- cgit v1.1