diff options
author | Peter Zotov <whitequark@whitequark.org> | 2014-12-02 17:35:26 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2014-12-02 17:35:26 +0000 |
commit | 39f6e738885bd6cc776fb29bb8c75fbcfa782461 (patch) | |
tree | de5492fa39fb600152f5c14758b9deb7cd5b1034 /bindings/ocaml/llvm/llvm_ocaml.c | |
parent | 0a24620459fee1ebc8a249e7ee83d959e0c90ddb (diff) |
[OCaml] Add Llvm.mdnull.
Patch by Gideon Smeding <gideon.smeding@3ds.com>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm_ocaml.c')
-rw-r--r-- | bindings/ocaml/llvm/llvm_ocaml.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index 63c235d3ead..1fa4d0f32d0 100644 --- a/bindings/ocaml/llvm/llvm_ocaml.c +++ b/bindings/ocaml/llvm/llvm_ocaml.c @@ -666,6 +666,11 @@ CAMLprim LLVMValueRef llvm_mdnode(LLVMContextRef C, value ElementVals) { Wosize_val(ElementVals)); } +/* llcontext -> llvalue */ +CAMLprim LLVMValueRef llvm_mdnull(LLVMContextRef C) { + return NULL; +} + /* llvalue -> string option */ CAMLprim value llvm_get_mdstring(LLVMValueRef V) { CAMLparam0(); |