summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-03-14 23:52:53 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-03-14 23:52:53 +0000
commit3c5da81df86ec463c5604cb36d93e699a25c6b4d (patch)
tree5ffe970e6dfecfddbb709e16ad226301a1b2afd0 /bindings
parent59dc98de2f79c027eb6860443daee260710b1405 (diff)
downloadllvm-3c5da81df86ec463c5604cb36d93e699a25c6b4d.tar.gz
llvm-3c5da81df86ec463c5604cb36d93e699a25c6b4d.tar.bz2
llvm-3c5da81df86ec463c5604cb36d93e699a25c6b4d.tar.xz
Expose Module::dump via C and Ocaml.
Patch by Erick Tryzelaar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/llvm/llvm.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index 23c565b60c..60b3bcef1e 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -200,6 +200,10 @@ external define_type_name : string -> lltype -> llmodule -> bool
external delete_type_name : string -> llmodule -> unit
= "llvm_delete_type_name"
+(** [dump_module m] prints the .ll representation of the module [m] to standard
+ error. See the method [llvm::Module::dump]. *)
+external dump_module : llmodule -> unit = "llvm_dump_module"
+
(** {6 Types} *)