aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/llvm/llvm_ocaml.c
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
commit1456bacbabfd337ea6bdf99fff172c8c364c0b9f (patch)
treea2fd7394807637248221b71769b9d3c5490da2ce /bindings/ocaml/llvm/llvm_ocaml.c
parentddf030ba62cb96ded043e745b6ba5fa3749da635 (diff)
downloadexternal_llvm-1456bacbabfd337ea6bdf99fff172c8c364c0b9f.zip
external_llvm-1456bacbabfd337ea6bdf99fff172c8c364c0b9f.tar.gz
external_llvm-1456bacbabfd337ea6bdf99fff172c8c364c0b9f.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/llvm_ocaml.c')
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c6
1 files changed, 6 insertions, 0 deletions
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 */