Expose ExecutionEngine::getTargetData() to c and ocaml bindings.
[oota-llvm.git] / bindings / ocaml / executionengine / llvm_executionengine.ml
index a73fc1e4bae0465abe94860e2fb367965efdf33a..4b9132df052e9c90b38d9164c8f13e98c08e89b5 100644 (file)
@@ -82,6 +82,9 @@ module ExecutionEngine = struct
     = "llvm_ee_run_function_as_main"
   external free_machine_code: Llvm.llvalue -> t -> unit
     = "llvm_ee_free_machine_code"
+
+  external target_data: t -> Llvm_target.TargetData.t
+    = "LLVMGetExecutionEngineTargetData"
   
   (* The following are not bound. Patches are welcome.