about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-17 15:41:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-17 15:41:43 +0000
commit561d694dc23e162bed0fef9aa1e50202d47c9ab2 (patch)
treef058485a74143432d8ba067d8abc40fb6ae32aec /tools
parent907f1eb5af56d40854aa2ac716d33b176a5caf28 (diff)
downloadklee-561d694dc23e162bed0fef9aa1e50202d47c9ab2.tar.gz
Make sure to initialize the native target, so we can make a JIT.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@76178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index d7d96323..49a15b51 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -24,6 +24,14 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
+
+// FIXME: Ugh, this is gross. But otherwise our config.h conflicts with LLVMs.
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
+#include "llvm/Target/TargetSelect.h"
 #include "llvm/System/Signals.h"
 #include <iostream>
 #include <fstream>
@@ -1060,6 +1068,9 @@ int main(int argc, char **argv, char **envp) {
 #endif
 
   atexit(llvm_shutdown);  // Call llvm_shutdown() on exit.
+
+  llvm::InitializeNativeTarget();
+
   parseArguments(argc, argv);
   sys::PrintStackTraceOnErrorSignal();