From 2ec4358c44e21fd43fa78d933dca7fbc55f0a908 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 22 Jun 2009 03:08:48 +0000 Subject: 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 --- lib/Core/ExternalDispatcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 #include @@ -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 -- cgit 1.4.1