[OCaml] Unbreak Llvm_executionengine.initialize_native_target.
authorPeter Zotov <whitequark@whitequark.org>
Sat, 25 Oct 2014 18:50:02 +0000 (18:50 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Sat, 25 Oct 2014 18:50:02 +0000 (18:50 +0000)
commit0ce2ef8c2dfbefa56e58e7054d7d0e7cdee2c297
tree35116c823bdf822fe1df65f395654ebe541df327
parent60d3f5918dfa3c23d0bcf60cb73fa609f95d970e
[OCaml] Unbreak Llvm_executionengine.initialize_native_target.

First, return true on success, as it is the OCaml convention.
Second, also initialize the native assembly printer, which is,
despite the name, required for MCJIT operation.

Since this function did not initialize the assembly printer earlier
and no function to initialize native assembly printer was available
elsewhere, it is safe to break its interface: it means that it
simply could not be used successfully before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220620 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/executionengine/executionengine_ocaml.c
test/Bindings/Ocaml/executionengine.ml