From 55db09933085a487118fe17973e102ee86177b3c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 2 Sep 2009 19:21:56 +0000 Subject: [PATCH] Add a comment noting the memory ownership rules. llvm-svn: 80827 --- include/llvm/Assembly/Parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Assembly/Parser.h b/include/llvm/Assembly/Parser.h index dc790b0202f..a508d5ce107 100644 --- a/include/llvm/Assembly/Parser.h +++ b/include/llvm/Assembly/Parser.h @@ -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