From: Owen Anderson Date: Fri, 22 Aug 2008 07:42:25 +0000 (+0000) Subject: Overload for both signed and unsigned char. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f83b02c62380f5ac5502eccc45d7b6203a7ea93;p=oota-llvm.git Overload for both signed and unsigned char. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 2210de1da1a..37f2b59da45 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -62,7 +62,14 @@ public: 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) flush_impl(); *OutBufCur++ = C;