Overload for both signed and unsigned char.
authorOwen Anderson <resistor@mac.com>
Fri, 22 Aug 2008 07:42:25 +0000 (07:42 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 22 Aug 2008 07:42:25 +0000 (07:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h

index 2210de1da1a44c52bfe636581a6a407709f89ae5..37f2b59da45a31d6b33f1d12782a76b89029f72c 100644 (file)
@@ -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;