From 39363abb5cf85b6f7a2ade139b466ca49e9dd8e8 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Thu, 30 Oct 2014 08:30:01 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220901 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bindings/Ocaml/target.ml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/Bindings/Ocaml/target.ml b/test/Bindings/Ocaml/target.ml index dfde7e83439..e532ad55ebf 100644 --- a/test/Bindings/Ocaml/target.ml +++ b/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 -- 2.34.1