[llvm-c] Implement LLVMPrintValueToString
[oota-llvm.git] / include / llvm-c / Core.h
index 89ddf418b2f4328de18891dd1f4512c4494b9b90..30b1d829d25da77f4c86ce54be2aeedd35d443b6 100644 (file)
@@ -1211,6 +1211,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.
  *