projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert the rest of the ocaml types and functions to use context.
[oota-llvm.git]
/
test
/
Bindings
/
Ocaml
/
executionengine.ml
diff --git
a/test/Bindings/Ocaml/executionengine.ml
b/test/Bindings/Ocaml/executionengine.ml
index 56cf6e86c794b8eba3ac48ae445ec58cbd8daa93..420a14f67c55239fbb72239f47a623d365af5363 100644
(file)
--- a/
test/Bindings/Ocaml/executionengine.ml
+++ b/
test/Bindings/Ocaml/executionengine.ml
@@
-9,6
+9,12
@@
open Llvm_target
(* Note that this takes a moment to link, so it's best to keep the number of
individual tests low. *)
(* Note that this takes a moment to link, so it's best to keep the number of
individual tests low. *)
+let context = global_context ()
+let i8_type = Llvm.i8_type context
+let i32_type = Llvm.i32_type context
+let i64_type = Llvm.i64_type context
+let double_type = Llvm.double_type context
+
let bomb msg =
prerr_endline msg;
exit 2
let bomb msg =
prerr_endline msg;
exit 2