From fd29440c07f195d7c059efeb50fe0c5905d88b3b Mon Sep 17 00:00:00 2001 From: David Greene Date: Tue, 28 Jul 2009 23:24:58 +0000 Subject: 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 --- include/llvm/Support/raw_ostream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 246fdb9..c8744d2 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 //===--------------------------------------------------------------------===// -- cgit v1.1