raw_ostream: unbuffered streams weren't being immediately flushed on

single character writes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-03-12 22:02:44 +00:00
parent 58256f83c8
commit bcf8ea9554

View File

@ -84,6 +84,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
return *this;
}
@ -91,6 +93,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
return *this;
}
@ -98,6 +102,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
if (Unbuffered)
flush_impl();
return *this;
}