about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-22 03:08:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-22 03:08:48 +0000
commit2ec4358c44e21fd43fa78d933dca7fbc55f0a908 (patch)
tree0d47c83e128ee1467f00e82d6208d18cde9d1a4e
parentb734b803bd38ff6c857b2706a8221a9ba0f0522b (diff)
downloadklee-2ec4358c44e21fd43fa78d933dca7fbc55f0a908.tar.gz
Update for changes in how JIT is linked in.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73868 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Core/ExternalDispatcher.cpp5
-rw-r--r--tools/klee/Makefile2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp
index eb60dcff..3486a757 100644
--- a/lib/Core/ExternalDispatcher.cpp
+++ b/lib/Core/ExternalDispatcher.cpp
@@ -20,6 +20,7 @@
 #include "llvm/System/DynamicLibrary.h"
 #include "llvm/Support/Streams.h"
 #include "llvm/Support/raw_ostream.h"
+#include "llvm/Target/TargetSelect.h"
 #include <setjmp.h>
 #include <signal.h>
 
@@ -76,6 +77,10 @@ ExternalDispatcher::ExternalDispatcher() {
     abort();
   }
 
+  // If we have a native target, initialize it to ensure it is linked in and
+  // usable by the JIT.
+  llvm::InitializeNativeTarget();
+
   // from ExecutionEngine::create
   if (executionEngine) {
     // Make sure we can resolve symbols in the program as well. The zero arg
diff --git a/tools/klee/Makefile b/tools/klee/Makefile
index b556175d..fbdcfd85 100644
--- a/tools/klee/Makefile
+++ b/tools/klee/Makefile
@@ -10,7 +10,7 @@
 LEVEL=../..
 TOOLNAME = klee
 USEDLIBS = kleeCore.a kleeModule.a kleaverSolver.a kleaverExpr.a kleeSupport.a kleeBasic.a
-LINK_COMPONENTS = bitreader bitwriter ipo linker engine
+LINK_COMPONENTS = jit bitreader bitwriter ipo linker engine
 
 include $(LEVEL)/Makefile.common