From: Daniel Dunbar Date: Thu, 12 Mar 2009 22:02:44 +0000 (+0000) Subject: raw_ostream: unbuffered streams weren't being immediately flushed on X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bcf8ea9554bbed7590b1e13f93de22ba57b4b853;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 852f7db4a17..1eb92ed0ffa 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -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; }