[llvm-c] Add LLVMPrintModuleToString.
[oota-llvm.git] / include / llvm-c / Core.h
index 57834c52928f94681bec3ceeb2417cb442a6011e..caadab1bac2c24c643522fdf182e8331a3ff9226 100644 (file)
@@ -540,6 +540,14 @@ void LLVMDumpModule(LLVMModuleRef M);
 LLVMBool LLVMPrintModuleToFile(LLVMModuleRef M, const char *Filename,
                                char **ErrorMessage);
 
+/**
+ * Return a string representation of the module. Use
+ * LLVMDisposeMessage to free the string.
+ *
+ * @see Module::print()
+ */
+char *LLVMPrintModuleToString(LLVMModuleRef M);
+
 /**
  * Set inline assembly for a module.
  *