mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 09:46:57 +00:00
Fix the JIT bindings for ocaml.
llvm-svn: 70454
This commit is contained in:
parent
25991c4e7d
commit
68ac27094d
@ -181,7 +181,7 @@ CAMLprim LLVMExecutionEngineRef
|
||||
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 @@ CAMLprim LLVMExecutionEngineRef
|
||||
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;
|
||||
}
|
||||
|
@ -114,11 +114,12 @@ int LLVMCreateInterpreter(LLVMExecutionEngineRef *OutInterp,
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user