summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 23:07:42 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 23:07:42 +0000
commite072ab869159015743d280a5b0390b68430b1dc0 (patch)
tree9add3054ff7ccefd5de3033f9aa0f1638f52b787
parent519466c32fe08bdf9afabfabd60a42f6c827ea6b (diff)
downloadllvm-e072ab869159015743d280a5b0390b68430b1dc0.tar.gz
llvm-e072ab869159015743d280a5b0390b68430b1dc0.tar.bz2
llvm-e072ab869159015743d280a5b0390b68430b1dc0.tar.xz
add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100490 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/SourceMgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index fd56b16639..158e7c9f42 100644
--- a/include/llvm/Support/SourceMgr.h
+++ b/include/llvm/Support/SourceMgr.h
@@ -76,6 +76,8 @@ public:
return Buffers[i].IncludeLoc;
}
+ /// AddNewSourceBuffer - Add a new source buffer to this source manager. This
+ /// takes ownership of the memory buffer.
unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) {
SrcBuffer NB;
NB.Buffer = F;