From: David Greene Date: Tue, 28 Jul 2009 23:24:58 +0000 (+0000) Subject: Add some protected interfaces to allow subclass access to the buffer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd29440c07f195d7c059efeb50fe0c5905d88b3b;p=oota-llvm.git Add some protected interfaces to allow subclass access to the buffer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77395 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 246fdb92ec7..c8744d2dd3d 100644 --- 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 //===--------------------------------------------------------------------===//