raw_ostream &operator<<(char C) {
if (OutBufCur >= OutBufEnd)
- flush_impl();
+ return write(C);
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
raw_ostream &operator<<(unsigned char C) {
if (OutBufCur >= OutBufEnd)
- flush_impl();
+ return write(C);
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
raw_ostream &operator<<(signed char C) {
if (OutBufCur >= OutBufEnd)
- flush_impl();
+ return write(C);
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
return this->operator<<(ftostr(N));
}
+ raw_ostream &write(unsigned char C);
raw_ostream &write(const char *Ptr, unsigned Size);
// Formatted output, see the format() function in Support/Format.h.
raw_ostream &raw_ostream::operator<<(long N) {
if (N < 0) {
- if (OutBufCur >= OutBufEnd)
- flush_impl();
- *OutBufCur++ = '-';
-
+ *this << '-';
N = -N;
}
raw_ostream &raw_ostream::operator<<(long long N) {
if (N < 0) {
- if (OutBufCur >= OutBufEnd)
- flush_impl();
- *OutBufCur++ = '-';
-
+ *this << '-';
N = -N;
}
return *this << format("%p", P);
}
+raw_ostream &raw_ostream::write(unsigned char C) {
+ if (OutBufCur >= OutBufEnd)
+ flush_impl();
+
+ *OutBufCur++ = C;
+}
raw_ostream &raw_ostream::write(const char *Ptr, unsigned Size) {
if (OutBufCur+Size > OutBufEnd)