diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:09:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:09:50 +0000 |
commit | 691a4784db7a1319571e84fc4cfc4cd63a3b82dd (patch) | |
tree | 44f3402afe41eceac7db022418d5ffd4e128a3d9 /llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp | |
parent | 3c2da2bb7ed6c55f9960fb2779cf09382a95b1ac (diff) | |
download | bcm5719-llvm-691a4784db7a1319571e84fc4cfc4cd63a3b82dd.tar.gz bcm5719-llvm-691a4784db7a1319571e84fc4cfc4cd63a3b82dd.zip |
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
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp b/llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp index 2b80e7e2bd1..84b745b3f9a 100644 --- a/llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp +++ b/llvm/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"; |