[OCaml] Add Llvm.{string_of_const,const_element}.
[oota-llvm.git] / bindings / ocaml / llvm / llvm.ml
index 39875a5ed48889d558a442072b12ecb6ce6265a9..a52bf004e5996df4e1f0713c28ebbc00be616953 100644 (file)
@@ -479,6 +479,8 @@ external const_named_struct : lltype -> llvalue array -> llvalue
 external const_packed_struct : llcontext -> llvalue array -> llvalue
                              = "llvm_const_packed_struct"
 external const_vector : llvalue array -> llvalue = "llvm_const_vector"
+external string_of_const : llvalue -> string option = "llvm_string_of_const"
+external const_element : llvalue -> int -> llvalue = "llvm_const_element"
 
 (*--... Constant expressions ...............................................--*)
 external align_of : lltype -> llvalue = "LLVMAlignOf"