From 18b9105d02ee152e7f8faab751d6f356428c3054 Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Tue, 22 Oct 2013 06:58:34 +0000 Subject: llvm-c: Add LLVMPrintTypeToString Differential Revision: http://llvm-reviews.chandlerc.com/D1963 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193149 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/llvm-c') diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index f9717cc..a48ea7e 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -723,6 +723,14 @@ LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty); void LLVMDumpType(LLVMTypeRef Val); /** + * Return a string representation of the type. Use + * LLVMDisposeMessage to free the string. + * + * @see llvm::Type::print() + */ +char *LLVMPrintTypeToString(LLVMTypeRef Val); + +/** * @defgroup LLVMCCoreTypeInt Integer Types * * Functions in this section operate on integer types. -- cgit v1.1