[llvm-c] Implement LLVMPrintValueToString

Original patch by Chris Wailes

llvm-svn: 194135
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 89ddf41..30b1d82 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -1212,6 +1212,14 @@
 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()