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 //===--------------------------------------------------------------------===//