summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-02 19:21:56 +0000
committerDan Gohman <gohman@apple.com>2009-09-02 19:21:56 +0000
commit5c4e17c5ecda6cf8f628d85c73461f84c8fdb29b (patch)
treeb3c515b306afb2e3af1dfb35456af05ec591ffd3 /include/llvm/Assembly
parent87750fcfc8d6ace324d0a237ae7da14d120fff34 (diff)
downloadllvm-5c4e17c5ecda6cf8f628d85c73461f84c8fdb29b.tar.gz
llvm-5c4e17c5ecda6cf8f628d85c73461f84c8fdb29b.tar.bz2
llvm-5c4e17c5ecda6cf8f628d85c73461f84c8fdb29b.tar.xz
Add a comment noting the memory ownership rules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r--include/llvm/Assembly/Parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Assembly/Parser.h b/include/llvm/Assembly/Parser.h
index dc790b0202..a508d5ce10 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