[llvm-commits] [llvm] r55171 - /llvm/trunk/include/llvm/Support/raw_ostream.h
Owen Anderson
resistor at mac.com
Fri Aug 22 00:42:25 PDT 2008
Author: resistor
Date: Fri Aug 22 02:42:25 2008
New Revision: 55171
URL: http://llvm.org/viewvc/llvm-project?rev=55171&view=rev
Log:
Overload for both signed and unsigned char.
Modified:
llvm/trunk/include/llvm/Support/raw_ostream.h
Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=55171&r1=55170&r2=55171&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Fri Aug 22 02:42:25 2008
@@ -62,7 +62,14 @@
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;
More information about the llvm-commits
mailing list