Fix the EE bindings to use the proper EE interfaces for creating a JIT.
authorChris Lattner <sabre@nondot.org>
Tue, 16 Jun 2009 22:26:13 +0000 (22:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Jun 2009 22:26:13 +0000 (22:26 +0000)
Calling into createJIT directly creates a circular dependency between libjit and lib ee.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73567 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/ExecutionEngineBindings.cpp

index 83397a586d5372b475959a9771e682eab68f4951..401a22647e1d849c8591263a69ea03a287e26959 100644 (file)
@@ -118,7 +118,7 @@ int LLVMCreateJITCompiler(LLVMExecutionEngineRef *OutJIT,
                           char **OutError) {
   std::string Error;
   if (ExecutionEngine *JIT =
-      ExecutionEngine::createJIT(unwrap(MP), &Error, 0,
+      ExecutionEngine::create(unwrap(MP), false, &Error,
                                  (CodeGenOpt::Level)OptLevel)) {
     *OutJIT = wrap(JIT);
     return 0;