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:
d460962
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77395
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/raw_ostream.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/raw_ostream.h
b/include/llvm/Support/raw_ostream.h
index 246fdb92ec756d4ee59e63726ed6cb4c2bc38c64..c8744d2dd3dcd9d78ad325dec7c9b9ab382f4e48 100644
(file)
--- a/
include/llvm/Support/raw_ostream.h
+++ b/
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
//===--------------------------------------------------------------------===//