summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2013-10-22 06:58:34 +0000
committerAnders Waldenborg <anders@0x63.nu>2013-10-22 06:58:34 +0000
commit18b9105d02ee152e7f8faab751d6f356428c3054 (patch)
tree2416179e0d6ae8dfa81103982352717a36a54022 /include/llvm-c
parente877eebfe9d716ed1101aecf958af473836e70e1 (diff)
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
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index f9717cc5f55..a48ea7e7457 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.