Add some protected interfaces to allow subclass access to the buffer.
authorDavid Greene <greened@obbligato.org>
Tue, 28 Jul 2009 23:24:58 +0000 (23:24 +0000)
committerDavid 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

index 246fdb9..c8744d2 100644 (file)
@@ -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
   //===--------------------------------------------------------------------===//