aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/executionengine/executionengine_ocaml.c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-08-08 20:49:28 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-08-08 20:49:28 +0000
commitc13c4d6a1bbc91a9e3bb9f964f32f3a999071070 (patch)
tree5e46cae5df29d42da7ed3d9f647039ddf7b5ed34 /bindings/ocaml/executionengine/executionengine_ocaml.c
parent7a61d701c0870642e075e90b6a1ad03a8ac9bc67 (diff)
downloadexternal_llvm-c13c4d6a1bbc91a9e3bb9f964f32f3a999071070.zip
external_llvm-c13c4d6a1bbc91a9e3bb9f964f32f3a999071070.tar.gz
external_llvm-c13c4d6a1bbc91a9e3bb9f964f32f3a999071070.tar.bz2
Fix the LLVMCreateJITCompiler C binding.
Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/executionengine/executionengine_ocaml.c')
-rw-r--r--bindings/ocaml/executionengine/executionengine_ocaml.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/bindings/ocaml/executionengine/executionengine_ocaml.c b/bindings/ocaml/executionengine/executionengine_ocaml.c
index 4af7711..fc3848a 100644
--- a/bindings/ocaml/executionengine/executionengine_ocaml.c
+++ b/bindings/ocaml/executionengine/executionengine_ocaml.c
@@ -181,7 +181,17 @@ CAMLprim LLVMExecutionEngineRef
llvm_ee_create_jit(LLVMModuleProviderRef MP) {
LLVMExecutionEngineRef JIT;
char *Error;
- if (LLVMCreateJITCompiler(&JIT, MP, &Error))
+ if (LLVMCreateJITCompiler(&JIT, MP, 0, &Error))
+ llvm_raise(llvm_ee_error_exn, Error);
+ return JIT;
+}
+
+/* llmoduleprovider -> ExecutionEngine.t */
+CAMLprim LLVMExecutionEngineRef
+llvm_ee_create_fast_jit(LLVMModuleProviderRef MP) {
+ LLVMExecutionEngineRef JIT;
+ char *Error;
+ if (LLVMCreateJITCompiler(&JIT, MP, 1, &Error))
llvm_raise(llvm_ee_error_exn, Error);
return JIT;
}