Overload for both signed and unsigned char.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-08-22 07:42:25 +00:00
parent 2dba6a1bdb
commit 1f83b02c62

View File

@ -62,7 +62,14 @@ public:
flush_impl(); flush_impl();
} }
raw_ostream &operator<<(char C) { raw_ostream &operator<<(unsigned char C) {
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
return *this;
}
raw_ostream &operator<<(signed char C) {
if (OutBufCur >= OutBufEnd) if (OutBufCur >= OutBufEnd)
flush_impl(); flush_impl();
*OutBufCur++ = C; *OutBufCur++ = C;