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
diff --git a/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp b/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp
index 20bbba8..2a88fe5 100644
--- a/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp
+++ b/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp
@@ -14,10 +14,6 @@
Target llvm::ThePIC16Target;
-static unsigned PIC16_JITMatchQuality() {
- return 0;
-}
-
static unsigned PIC16_TripleMatchQuality(const std::string &TT) {
return 0;
}
@@ -28,10 +24,6 @@
Target llvm::TheCooperTarget;
-static unsigned Cooper_JITMatchQuality() {
- return 0;
-}
-
static unsigned Cooper_TripleMatchQuality(const std::string &TT) {
return 0;
}
@@ -44,12 +36,10 @@
TargetRegistry::RegisterTarget(ThePIC16Target, "pic16",
"PIC16 14-bit [experimental]",
&PIC16_TripleMatchQuality,
- &PIC16_ModuleMatchQuality,
- &PIC16_JITMatchQuality);
+ &PIC16_ModuleMatchQuality);
TargetRegistry::RegisterTarget(TheCooperTarget, "cooper",
"PIC16 Cooper [experimental]",
&Cooper_TripleMatchQuality,
- &Cooper_ModuleMatchQuality,
- &Cooper_JITMatchQuality);
+ &Cooper_ModuleMatchQuality);
}