diff options
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 37f2b59da4..34e40da517 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(); |