[llvm-commits] [llvm] r80827 - /llvm/trunk/include/llvm/Assembly/Parser.h

Dan Gohman gohman at apple.com
Wed Sep 2 12:21:56 PDT 2009


Author: djg
Date: Wed Sep  2 14:21:56 2009
New Revision: 80827

URL: http://llvm.org/viewvc/llvm-project?rev=80827&view=rev
Log:
Add a comment noting the memory ownership rules.

Modified:
    llvm/trunk/include/llvm/Assembly/Parser.h

Modified: llvm/trunk/include/llvm/Assembly/Parser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Assembly/Parser.h?rev=80827&r1=80826&r2=80827&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Assembly/Parser.h (original)
+++ llvm/trunk/include/llvm/Assembly/Parser.h Wed Sep  2 14:21:56 2009
@@ -51,7 +51,8 @@
 
 /// 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





More information about the llvm-commits mailing list