From: Nicolas Geoffray Date: Fri, 22 Aug 2008 08:44:47 +0000 (+0000) Subject: Also overload for char, since the "char" type depends on the host. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f46dc79ac502f6ed06dea3ba558bcfcc49061114;p=oota-llvm.git Also overload for char, since the "char" type depends on the host. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55173 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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();