summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2014-10-30 08:30:01 +0000
committerPeter Zotov <whitequark@whitequark.org>2014-10-30 08:30:01 +0000
commitf481471495d40e808de5c61a6c2310820f358346 (patch)
treefd010788403a94659debc13228f82e0f95676e32 /llvm/test
parentd6d49fd0e291a6c8e66242b4f7f18905b87a7e90 (diff)
downloadbcm5719-llvm-f481471495d40e808de5c61a6c2310820f358346.tar.gz
bcm5719-llvm-f481471495d40e808de5c61a6c2310820f358346.zip
[OCaml] Test code emission in Llvm_target.
Prior to this commit, the Llvm_target tests (ab)used the Llvm_executionengine as a mechanism to initialize at least some target. This needlessly restricted tests to builds which can emit code for their host architecture. llvm-svn: 220901
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Bindings/Ocaml/target.ml7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/Bindings/Ocaml/target.ml b/llvm/test/Bindings/Ocaml/target.ml
index dfde7e83439..e532ad55ebf 100644
--- a/llvm/test/Bindings/Ocaml/target.ml
+++ b/llvm/test/Bindings/Ocaml/target.ml
@@ -1,7 +1,6 @@
(* RUN: cp %s %T/target.ml
- * RUN: %ocamlcomp -g -warn-error A -package llvm.target -package llvm.executionengine -linkpkg %T/target.ml -o %t
+ * RUN: %ocamlcomp -g -warn-error A -package llvm.target -package llvm.all_backends -linkpkg %T/target.ml -o %t
* RUN: %t %t.bc
- * REQUIRES: native, object-emission
* XFAIL: vg_leak
*)
@@ -12,7 +11,7 @@
open Llvm
open Llvm_target
-let _ = Llvm_executionengine.initialize_native_target ()
+let () = Llvm_all_backends.initialize ()
let context = global_context ()
let i32_type = Llvm.i32_type context
@@ -112,5 +111,5 @@ let _ =
test_target_data ();
test_target ();
test_target_machine ();
- (* test_code_emission (); *) (* broken without AsmParser support *)
+ test_code_emission ();
dispose_module m
OpenPOWER on IntegriCloud