summaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/ocaml/llvm')
-rw-r--r--bindings/ocaml/llvm/llvm.ml3
-rw-r--r--bindings/ocaml/llvm/llvm.mli1
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c6
3 files changed, 4 insertions, 6 deletions
diff --git a/bindings/ocaml/llvm/llvm.ml b/bindings/ocaml/llvm/llvm.ml
index 37d0fd7..25e47ab 100644
--- a/bindings/ocaml/llvm/llvm.ml
+++ b/bindings/ocaml/llvm/llvm.ml
@@ -93,7 +93,6 @@ module Attribute = struct
| Noredzone
| Noimplicitfloat
| Naked
- | Inlinehint
end
module Icmp = struct
@@ -848,7 +847,7 @@ module ModuleProvider = struct
= "LLVMCreateModuleProviderForExistingModule"
external dispose : llmoduleprovider -> unit = "llvm_dispose_module_provider"
end
-
+
(*===-- Memory buffers ----------------------------------------------------===*)
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index a7c2bcf..c703ef7 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -143,7 +143,6 @@ module Attribute : sig
| Noredzone
| Noimplicitfloat
| Naked
- | Inlinehint
end
(** The predicate for an integer comparison ([icmp]) instruction.
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index 8868d07..6cc475d 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -112,9 +112,9 @@ CAMLprim LLVMContextRef llvm_global_context(value Unit) {
/*===-- Modules -----------------------------------------------------------===*/
-/* string -> llmodule */
-CAMLprim LLVMModuleRef llvm_create_module(value ModuleID) {
- return LLVMModuleCreateWithName(String_val(ModuleID));
+/* llcontext -> string -> llmodule */
+CAMLprim LLVMModuleRef llvm_create_module(LLVMContextRef C, value ModuleID) {
+ return LLVMModuleCreateWithNameInContext(String_val(ModuleID), C);
}
/* llmodule -> unit */
OpenPOWER on IntegriCloud