summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2009-09-14 21:54:32 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2009-09-14 21:54:32 +0000
commitb4e19177cbe87bdea74b7c707938a9df66c37df7 (patch)
tree3ccd8714a01b31b9491e5c7ca237a4eccc9b98d6 /llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
parentc8a18f97bb4c57b4c856c472b1b07c2d883a4d6e (diff)
downloadbcm5719-llvm-b4e19177cbe87bdea74b7c707938a9df66c37df7.tar.gz
bcm5719-llvm-b4e19177cbe87bdea74b7c707938a9df66c37df7.zip
Expose initializing the native target for the execution engine.
llvm-svn: 81800
Diffstat (limited to 'llvm/bindings/ocaml/executionengine/executionengine_ocaml.c')
-rw-r--r--llvm/bindings/ocaml/executionengine/executionengine_ocaml.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c b/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
index 647759fb074..072d583bf8f 100644
--- a/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
+++ b/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
@@ -24,11 +24,15 @@
#include <string.h>
#include <assert.h>
-/* Force the LLVM interpreter, JIT, and native target to be linked in. */
+/* Force the LLVM interpreter and JIT to be linked in. */
void llvm_initialize(void) {
LLVMLinkInInterpreter();
LLVMLinkInJIT();
- LLVMInitializeNativeTarget();
+}
+
+/* unit -> bool */
+CAMLprim value llvm_initialize_native_target(value Unit) {
+ return Val_bool(LLVMInitializeNativeTarget());
}
/* Can't use the recommended caml_named_value mechanism for backwards
OpenPOWER on IntegriCloud