From 1f83b02c62380f5ac5502eccc45d7b6203a7ea93 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 22 Aug 2008 07:42:25 +0000 Subject: [PATCH] Overload for both signed and unsigned char. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/raw_ostream.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 2.11.0