[llvm-commits] [llvm] r77395 - /llvm/trunk/include/llvm/Support/raw_ostream.h
David Greene
greened at obbligato.org
Tue Jul 28 16:24:58 PDT 2009
Author: greened
Date: Tue Jul 28 18:24:58 2009
New Revision: 77395
URL: http://llvm.org/viewvc/llvm-project?rev=77395&view=rev
Log:
Add some protected interfaces to allow subclass access to the buffer.
Modified:
llvm/trunk/include/llvm/Support/raw_ostream.h
Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=77395&r1=77394&r2=77395&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Tue Jul 28 18:24:58 2009
@@ -242,6 +242,10 @@
/// been encountered.
void error_detected() { Error = true; }
+ typedef char * iterator;
+ iterator begin(void) { return OutBufStart; }
+ iterator end(void) { return OutBufCur; }
+
//===--------------------------------------------------------------------===//
// Private Interface
//===--------------------------------------------------------------------===//
More information about the llvm-commits
mailing list