projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c574d8
)
Add some protected interfaces to allow subclass access to the buffer.
author
David Greene
<greened@obbligato.org>
Tue, 28 Jul 2009 23:24:58 +0000
(23:24 +0000)
committer
David Greene
<greened@obbligato.org>
Tue, 28 Jul 2009 23:24:58 +0000
(23:24 +0000)
llvm-svn: 77395
llvm/include/llvm/Support/raw_ostream.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/raw_ostream.h
b/llvm/include/llvm/Support/raw_ostream.h
index
246fdb9
..
c8744d2
100644
(file)
--- a/
llvm/include/llvm/Support/raw_ostream.h
+++ b/
llvm/include/llvm/Support/raw_ostream.h
@@
-242,6
+242,10
@@
protected:
/// been encountered.
void error_detected() { Error = true; }
+ typedef char * iterator;
+ iterator begin(void) { return OutBufStart; }
+ iterator end(void) { return OutBufCur; }
+
//===--------------------------------------------------------------------===//
// Private Interface
//===--------------------------------------------------------------------===//