mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
[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
This commit is contained in:
parent
0a24620459
commit
39f6e73888
@ -459,6 +459,7 @@ external clear_metadata : llvalue -> llmdkind -> unit = "llvm_clear_metadata"
|
|||||||
(*--... Operations on metadata .......,.....................................--*)
|
(*--... Operations on metadata .......,.....................................--*)
|
||||||
external mdstring : llcontext -> string -> llvalue = "llvm_mdstring"
|
external mdstring : llcontext -> string -> llvalue = "llvm_mdstring"
|
||||||
external mdnode : llcontext -> llvalue array -> llvalue = "llvm_mdnode"
|
external mdnode : llcontext -> llvalue array -> llvalue = "llvm_mdnode"
|
||||||
|
external mdnull : llcontext -> llvalue = "llvm_mdnull"
|
||||||
external get_mdstring : llvalue -> string option = "llvm_get_mdstring"
|
external get_mdstring : llvalue -> string option = "llvm_get_mdstring"
|
||||||
external get_named_metadata : llmodule -> string -> llvalue array
|
external get_named_metadata : llmodule -> string -> llvalue array
|
||||||
= "llvm_get_namedmd"
|
= "llvm_get_namedmd"
|
||||||
|
@ -819,6 +819,9 @@ val mdstring : llcontext -> string -> llvalue
|
|||||||
See the method [llvm::MDNode::get]. *)
|
See the method [llvm::MDNode::get]. *)
|
||||||
val mdnode : llcontext -> llvalue array -> llvalue
|
val mdnode : llcontext -> llvalue array -> llvalue
|
||||||
|
|
||||||
|
(** [mdnull c ] returns a null MDNode in context [c]. *)
|
||||||
|
val mdnull : llcontext -> llvalue
|
||||||
|
|
||||||
(** [get_mdstring v] returns the MDString.
|
(** [get_mdstring v] returns the MDString.
|
||||||
See the method [llvm::MDString::getString] *)
|
See the method [llvm::MDString::getString] *)
|
||||||
val get_mdstring : llvalue -> string option
|
val get_mdstring : llvalue -> string option
|
||||||
|
@ -666,6 +666,11 @@ CAMLprim LLVMValueRef llvm_mdnode(LLVMContextRef C, value ElementVals) {
|
|||||||
Wosize_val(ElementVals));
|
Wosize_val(ElementVals));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* llcontext -> llvalue */
|
||||||
|
CAMLprim LLVMValueRef llvm_mdnull(LLVMContextRef C) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* llvalue -> string option */
|
/* llvalue -> string option */
|
||||||
CAMLprim value llvm_get_mdstring(LLVMValueRef V) {
|
CAMLprim value llvm_get_mdstring(LLVMValueRef V) {
|
||||||
CAMLparam0();
|
CAMLparam0();
|
||||||
|
Loading…
Reference in New Issue
Block a user