aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/llvm/llvm_ocaml.c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-12 01:04:30 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-12 01:04:30 +0000
commita79e848b3a122eaaf146d1bd01bb147fd58288cc (patch)
tree2b885952bef39a4e82c353bd5880762d77517054 /bindings/ocaml/llvm/llvm_ocaml.c
parent6a038b4fc9bf564633800741edb09748d4a4b1fd (diff)
downloadexternal_llvm-a79e848b3a122eaaf146d1bd01bb147fd58288cc.zip
external_llvm-a79e848b3a122eaaf146d1bd01bb147fd58288cc.tar.gz
external_llvm-a79e848b3a122eaaf146d1bd01bb147fd58288cc.tar.bz2
Add (very basic) bindings for ModuleProvider.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm_ocaml.c')
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index 342d890..f9d7e6f 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -1047,3 +1047,11 @@ CAMLprim LLVMValueRef llvm_build_shufflevector(LLVMValueRef V1, LLVMValueRef V2,
return LLVMBuildShuffleVector(Builder_val(B), V1, V2, Mask, String_val(Name));
}
+
+/*===-- Module Providers --------------------------------------------------===*/
+
+/* llmoduleprovider -> unit */
+CAMLprim value llvm_dispose_module_provider(LLVMModuleProviderRef MP) {
+ LLVMDisposeModuleProvider(MP);
+ return Val_unit;
+}