Add a comment noting the memory ownership rules.

llvm-svn: 80827
This commit is contained in:
Dan Gohman 2009-09-02 19:21:56 +00:00
parent 2e56cc6e6c
commit a7e8799c72
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ Module *ParseAssemblyString(
/// This function is the low-level interface to the LLVM Assembly Parser.
/// ParseAssemblyFile and ParseAssemblyString are wrappers around this function.
/// @brief Parse LLVM Assembly from a MemoryBuffer.
/// @brief Parse LLVM Assembly from a MemoryBuffer. This function *always*
/// takes ownership of the MemoryBuffer.
Module *ParseAssembly(
MemoryBuffer *F, ///< The MemoryBuffer containing assembly
const std::string &Name, ///< The name of the original source file