aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
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/ExecutionEngine
parente0d12d5f7b0a6369df128c8b0cc43e6e08a804a0 (diff)
downloadexternal_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.zip
external_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.gz
external_llvm-d6fd377f3333922c4e928019cdfa124ff7f4dd2e.tar.bz2
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/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/TargetSelect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/TargetSelect.cpp b/lib/ExecutionEngine/JIT/TargetSelect.cpp
index 2b80e7e..84b745b 100644
--- a/lib/ExecutionEngine/JIT/TargetSelect.cpp
+++ b/lib/ExecutionEngine/JIT/TargetSelect.cpp
@@ -65,7 +65,7 @@ TargetMachine *JIT::selectTarget(ModuleProvider *MP, std::string *ErrorStr) {
return 0;
}
- if (TheTarget->getJITMatchQuality() == 0) {
+ if (!TheTarget->hasJIT()) {
cerr << "WARNING: This target JIT is not designed for the host you are"
<< " running. If bad things happen, please choose a different "
<< "-march switch.\n";