From 75a5df1d1e086f3d9c46e1b602381fb56a8911f3 Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Wed, 16 Oct 2013 21:30:25 +0000 Subject: 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192852 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index caadab1bac..d39128db1a 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -699,6 +699,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 * -- cgit v1.2.3