diff options
author | Peter Zotov <whitequark@whitequark.org> | 2013-11-06 09:21:01 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2013-11-06 09:21:01 +0000 |
commit | 14bbb1d9b083c7935185e7c11ddf059f352aa3fc (patch) | |
tree | 1d21b2b46322845d1ad2a51d30102d9b806197aa /include/llvm-c | |
parent | 7851bc1871dcb7c31b603b17cf975ae0b55f4c30 (diff) | |
download | external_llvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.zip external_llvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.tar.gz external_llvm-14bbb1d9b083c7935185e7c11ddf059f352aa3fc.tar.bz2 |
[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/llvm-c')
-rw-r--r-- | include/llvm-c/Core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 89ddf41..30b1d82 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() |