[llvm-commits] [llvm] r70454 - in /llvm/trunk: bindings/ocaml/executionengine/executionengine_ocaml.c lib/ExecutionEngine/ExecutionEngineBindings.cpp
Bill Wendling
isanbard at gmail.com
Wed Apr 29 17:43:39 PDT 2009
Author: void
Date: Wed Apr 29 19:43:39 2009
New Revision: 70454
URL: http://llvm.org/viewvc/llvm-project?rev=70454&view=rev
Log:
Fix the JIT bindings for ocaml.
Modified:
llvm/trunk/bindings/ocaml/executionengine/executionengine_ocaml.c
llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
Modified: llvm/trunk/bindings/ocaml/executionengine/executionengine_ocaml.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/executionengine/executionengine_ocaml.c?rev=70454&r1=70453&r2=70454&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/executionengine/executionengine_ocaml.c (original)
+++ llvm/trunk/bindings/ocaml/executionengine/executionengine_ocaml.c Wed Apr 29 19:43:39 2009
@@ -181,7 +181,7 @@
llvm_ee_create_jit(LLVMModuleProviderRef MP) {
LLVMExecutionEngineRef JIT;
char *Error;
- if (LLVMCreateJITCompiler(&JIT, MP, 0, &Error))
+ if (LLVMCreateJITCompiler(&JIT, MP, 3, &Error))
llvm_raise(llvm_ee_error_exn, Error);
return JIT;
}
@@ -191,7 +191,7 @@
llvm_ee_create_fast_jit(LLVMModuleProviderRef MP) {
LLVMExecutionEngineRef JIT;
char *Error;
- if (LLVMCreateJITCompiler(&JIT, MP, 1, &Error))
+ if (LLVMCreateJITCompiler(&JIT, MP, 0, &Error))
llvm_raise(llvm_ee_error_exn, Error);
return JIT;
}
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp?rev=70454&r1=70453&r2=70454&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp Wed Apr 29 19:43:39 2009
@@ -114,11 +114,12 @@
int LLVMCreateJITCompiler(LLVMExecutionEngineRef *OutJIT,
LLVMModuleProviderRef MP,
- CodeGenOpt::Level OptLevel,
+ unsigned OptLevel,
char **OutError) {
std::string Error;
- if (ExecutionEngine *JIT = ExecutionEngine::createJIT(unwrap(MP), &Error, 0,
- OptLevel)) {
+ if (ExecutionEngine *JIT =
+ ExecutionEngine::createJIT(unwrap(MP), &Error, 0,
+ (CodeGenOpt::Level)OptLevel)) {
*OutJIT = wrap(JIT);
return 0;
}
More information about the llvm-commits
mailing list