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
diff --git a/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp b/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
index 60f53e3..f148506 100644
--- a/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
+++ b/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
@@ -14,14 +14,6 @@
 
 llvm::Target llvm::TheAlphaTarget;
 
-static unsigned Alpha_JITMatchQuality() {
-#ifdef __alpha
-  return 10;
-#else
-  return 0;
-#endif
-}
-
 static unsigned Alpha_TripleMatchQuality(const std::string &TT) {
   // We strongly match "alpha*".
   if (TT.size() >= 5 && TT[0] == 'a' && TT[1] == 'l' && TT[2] == 'p' &&
@@ -46,7 +38,7 @@
            M.getPointerSize() != Module::AnyPointerSize)
     return 0;                                    // Match for some other target
 
-  return Alpha_JITMatchQuality()/2;
+  return 0;
 }
 
 extern "C" void LLVMInitializeAlphaTargetInfo() { 
@@ -54,5 +46,5 @@
                                   "Alpha [experimental]",
                                   &Alpha_TripleMatchQuality,
                                   &Alpha_ModuleMatchQuality,
-                                  &Alpha_JITMatchQuality);
+                                  /*HasJIT=*/true);
 }