mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -14,10 +14,6 @@ using namespace llvm;
|
||||
|
||||
Target llvm::TheCppBackendTarget;
|
||||
|
||||
static unsigned CppBackend_JITMatchQuality() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned CppBackend_TripleMatchQuality(const std::string &TT) {
|
||||
// This class always works, but shouldn't be the default in most cases.
|
||||
return 1;
|
||||
@@ -32,6 +28,5 @@ extern "C" void LLVMInitializeCppBackendTargetInfo() {
|
||||
TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp",
|
||||
"C++ backend",
|
||||
&CppBackend_TripleMatchQuality,
|
||||
&CppBackend_ModuleMatchQuality,
|
||||
&CppBackend_JITMatchQuality);
|
||||
&CppBackend_ModuleMatchQuality);
|
||||
}
|
||||
|
Reference in New Issue
Block a user