projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519466c
)
add a comment.
author
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2010 23:07:42 +0000
(23:07 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2010 23:07:42 +0000
(23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100490
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/SourceMgr.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/SourceMgr.h
b/include/llvm/Support/SourceMgr.h
index fd56b16639cbade317dfc25ecdb4b4d70e6a4305..158e7c9f42654f708d3195d7797c6a2a6a62c63f 100644
(file)
--- 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;