about summary refs log tree commit diff homepage
path: root/lib/Core
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 /lib/Core
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
Diffstat (limited to 'lib/Core')
-rw-r--r--lib/Core/ExternalDispatcher.cpp5
1 files changed, 5 insertions, 0 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