single characters writes outside of the fast path in raw_ostream.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67053
91177308-0d34-0410-b5e6-
96231b3b80d8
raw_ostream &operator<<(char C) {
if (OutBufCur >= OutBufEnd)
raw_ostream &operator<<(char C) {
if (OutBufCur >= OutBufEnd)
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
raw_ostream &operator<<(unsigned char C) {
if (OutBufCur >= OutBufEnd)
raw_ostream &operator<<(unsigned char C) {
if (OutBufCur >= OutBufEnd)
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
raw_ostream &operator<<(signed char C) {
if (OutBufCur >= OutBufEnd)
raw_ostream &operator<<(signed char C) {
if (OutBufCur >= OutBufEnd)
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
return this->operator<<(ftostr(N));
}
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 &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) {
raw_ostream &raw_ostream::operator<<(long N) {
if (N < 0) {
- if (OutBufCur >= OutBufEnd)
- flush_impl();
- *OutBufCur++ = '-';
-
raw_ostream &raw_ostream::operator<<(long long N) {
if (N < 0) {
raw_ostream &raw_ostream::operator<<(long long N) {
if (N < 0) {
- if (OutBufCur >= OutBufEnd)
- flush_impl();
- *OutBufCur++ = '-';
-
return *this << format("%p", P);
}
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)
raw_ostream &raw_ostream::write(const char *Ptr, unsigned Size) {
if (OutBufCur+Size > OutBufEnd)