diff options
author | Anders Waldenborg <anders@0x63.nu> | 2013-10-16 21:30:25 +0000 |
---|---|---|
committer | Anders Waldenborg <anders@0x63.nu> | 2013-10-16 21:30:25 +0000 |
commit | b822cffad2b9f1f019e82146eb1c5cd8e68d7315 (patch) | |
tree | bc7fca6ae80dae91dba9db4bdbac41556b9dd1fe /llvm/lib/IR/Core.cpp | |
parent | 3ff21b3195b7f602dfc9ed126186af25e19d3aaf (diff) | |
download | bcm5719-llvm-b822cffad2b9f1f019e82146eb1c5cd8e68d7315.tar.gz bcm5719-llvm-b822cffad2b9f1f019e82146eb1c5cd8e68d7315.zip |
llvm-c: Add LLVMDumpType
The C API currently allows to dump values (LLVMDumpValue), but a similar method for types was not exported.
Patch by Peter Zotov
Differential Revision: http://llvm-reviews.chandlerc.com/D1911
llvm-svn: 192852
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r-- | llvm/lib/IR/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index cf1c1df0ed6..7d52386b061 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -220,6 +220,10 @@ LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty) { return wrap(&unwrap(Ty)->getContext()); } +void LLVMDumpType(LLVMTypeRef Ty) { + return unwrap(Ty)->dump(); +} + /*--.. Operations on integer types .........................................--*/ LLVMTypeRef LLVMInt1TypeInContext(LLVMContextRef C) { |