summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-06 09:21:01 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-06 09:21:01 +0000
commit14bbb1d9b083c7935185e7c11ddf059f352aa3fc (patch)
tree1d21b2b46322845d1ad2a51d30102d9b806197aa /include
parent7851bc1871dcb7c31b603b17cf975ae0b55f4c30 (diff)
downloadllvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.tar.gz
llvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.tar.bz2
llvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.tar.xz
[llvm-c] Implement LLVMPrintValueToString
Original patch by Chris Wailes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 89ddf418b2..30b1d829d2 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -1212,6 +1212,14 @@ void LLVMSetValueName(LLVMValueRef Val, const char *Name);
void LLVMDumpValue(LLVMValueRef Val);
/**
+ * Return a string representation of the value. Use
+ * LLVMDisposeMessage to free the string.
+ *
+ * @see llvm::Value::print()
+ */
+char *LLVMPrintValueToString(LLVMValueRef Val);
+
+/**
* Replace all uses of a value with another one.
*
* @see llvm::Value::replaceAllUsesWith()