summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5225cd66cf3ad9b3f914b8e6cba1268ab5def5f4 (patch)
tree917a8fd477b7345d5faf8e13ea4b4d55b94f1955 /llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
parent994c8e393daee8890bfe9c05930d05d414292dc8 (diff)
downloadbcm5719-llvm-5225cd66cf3ad9b3f914b8e6cba1268ab5def5f4.tar.gz
bcm5719-llvm-5225cd66cf3ad9b3f914b8e6cba1268ab5def5f4.zip
Fix the LLVMCreateJITCompiler C binding.
Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. llvm-svn: 54555
Diffstat (limited to 'llvm/bindings/ocaml/executionengine/executionengine_ocaml.c')
-rw-r--r--llvm/bindings/ocaml/executionengine/executionengine_ocaml.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c b/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
index 4af771123c0..fc3848a1eb1 100644
--- a/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud