summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
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/include/llvm-c
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/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index caadab1bac2..d39128db1a6 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -700,6 +700,13 @@ LLVMBool LLVMTypeIsSized(LLVMTypeRef Ty);
LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty);
/**
+ * Dump a representation of a type to stderr.
+ *
+ * @see llvm::Type::dump()
+ */
+void LLVMDumpType(LLVMTypeRef Val);
+
+/**
* @defgroup LLVMCCoreTypeInt Integer Types
*
* Functions in this section operate on integer types.
OpenPOWER on IntegriCloud