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 | cd93b370d5978a37c0eda541b3d594f16c7a28b4 (patch) | |
tree | 7936d969b99607e9facfd053f9c08390737cf764 /llvm/include/llvm-c | |
parent | 08b0418828a1af90d1d7365d0e4abc0ba075bef9 (diff) | |
download | bcm5719-llvm-cd93b370d5978a37c0eda541b3d594f16c7a28b4.tar.gz bcm5719-llvm-cd93b370d5978a37c0eda541b3d594f16c7a28b4.zip |
[llvm-c] Implement LLVMPrintValueToString
Original patch by Chris Wailes
llvm-svn: 194135
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 89ddf418b2f..30b1d829d25 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/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() |