diff options
author | Owen Anderson <resistor@mac.com> | 2008-08-22 07:42:25 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-08-22 07:42:25 +0000 |
commit | 1f83b02c62380f5ac5502eccc45d7b6203a7ea93 (patch) | |
tree | a69099b4814a27474c93ca3e9ad05e1e0d9997b8 | |
parent | 2dba6a1bdb7d78b4d1e5e69b81989816193e6b70 (diff) |
Overload for both signed and unsigned char.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 2210de1da1..37f2b59da4 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; |