aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/llvm
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-06 00:08:49 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-06 00:08:49 +0000
commit88cc699942f7f972ef9bc3afa1df0a44d059e1d8 (patch)
treea2fd7394807637248221b71769b9d3c5490da2ce /bindings/ocaml/llvm
parentacd96191cd8d85f376ec0baafdc4f21b3042f677 (diff)
downloadexternal_llvm-88cc699942f7f972ef9bc3afa1df0a44d059e1d8.zip
external_llvm-88cc699942f7f972ef9bc3afa1df0a44d059e1d8.tar.gz
external_llvm-88cc699942f7f972ef9bc3afa1df0a44d059e1d8.tar.bz2
Wrapping Value::dump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm')
-rw-r--r--bindings/ocaml/llvm/llvm.ml1
-rw-r--r--bindings/ocaml/llvm/llvm.mli1
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c6
3 files changed, 8 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.ml b/bindings/ocaml/llvm/llvm.ml
index 63079f2..5121291 100644
--- a/bindings/ocaml/llvm/llvm.ml
+++ b/bindings/ocaml/llvm/llvm.ml
@@ -181,6 +181,7 @@ let label_type = _label_type ()
external type_of : llvalue -> lltype = "llvm_type_of"
external value_name : llvalue -> string = "llvm_value_name"
external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
+external dump_value : llvalue -> unit = "llvm_dump_value"
(*--... Operations on constants of (mostly) any type .......................--*)
external is_constant : llvalue -> bool = "llvm_is_constant"
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index 6275941..85b93ae 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -164,6 +164,7 @@ val label_type : lltype
external type_of : llvalue -> lltype = "llvm_type_of"
external value_name : llvalue -> string = "llvm_value_name"
external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
+external dump_value : llvalue -> unit = "llvm_dump_value"
(*--... Operations on constants of (mostly) any type .......................--*)
external is_constant : llvalue -> bool = "llvm_is_constant"
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index f53ad3c..bc6e0b7 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -219,6 +219,12 @@ CAMLprim value llvm_set_value_name(value Name, LLVMValueRef Val) {
return Val_unit;
}
+/* llvalue -> unit */
+CAMLprim value llvm_dump_value(LLVMValueRef Val) {
+ LLVMDumpValue(Val);
+ return Val_unit;
+}
+
/*--... Operations on constants of (mostly) any type .......................--*/
/* llvalue -> bool */