[llvm-commits] [llvm] r100490 - /llvm/trunk/include/llvm/Support/SourceMgr.h
Chris Lattner
sabre at nondot.org
Mon Apr 5 16:07:42 PDT 2010
Author: lattner
Date: Mon Apr 5 18:07:42 2010
New Revision: 100490
URL: http://llvm.org/viewvc/llvm-project?rev=100490&view=rev
Log:
add a comment.
Modified:
llvm/trunk/include/llvm/Support/SourceMgr.h
Modified: llvm/trunk/include/llvm/Support/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SourceMgr.h?rev=100490&r1=100489&r2=100490&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SourceMgr.h (original)
+++ llvm/trunk/include/llvm/Support/SourceMgr.h Mon Apr 5 18:07:42 2010
@@ -76,6 +76,8 @@
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;
More information about the llvm-commits
mailing list