diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 37f2b59da45..34e40da5174 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -62,6 +62,13 @@ public: flush_impl(); } + raw_ostream &operator<<(char C) { + if (OutBufCur >= OutBufEnd) + flush_impl(); + *OutBufCur++ = C; + return *this; + } + raw_ostream &operator<<(unsigned char C) { if (OutBufCur >= OutBufEnd) flush_impl();