diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-14 23:58:56 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-14 23:58:56 +0000 |
commit | af59b105bb3f9a31f1812e470eb9db28a8a1b491 (patch) | |
tree | b7f6b165cf0f13c635be441b1a97f65b8f1e1fd7 /lib/VMCore/Core.cpp | |
parent | 3c5da81df86ec463c5604cb36d93e699a25c6b4d (diff) | |
download | external_llvm-af59b105bb3f9a31f1812e470eb9db28a8a1b491.zip external_llvm-af59b105bb3f9a31f1812e470eb9db28a8a1b491.tar.gz external_llvm-af59b105bb3f9a31f1812e470eb9db28a8a1b491.tar.bz2 |
Expose Module::dump via C and Ocaml.
Patch by Erick Tryzelaar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r-- | lib/VMCore/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index c159bbc..665f0ac 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -76,6 +76,10 @@ void LLVMDeleteTypeName(LLVMModuleRef M, const char *Name) { TST.remove(I); } +void LLVMDumpModule(LLVMModuleRef M) { + unwrap(M)->dump(); +} + /*===-- Operations on types -----------------------------------------------===*/ |