summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2013-10-16 21:30:25 +0000
committerAnders Waldenborg <anders@0x63.nu>2013-10-16 21:30:25 +0000
commitb822cffad2b9f1f019e82146eb1c5cd8e68d7315 (patch)
treebc7fca6ae80dae91dba9db4bdbac41556b9dd1fe /llvm/lib/IR/Core.cpp
parent3ff21b3195b7f602dfc9ed126186af25e19d3aaf (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud