diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 22:02:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 22:02:44 +0000 |
commit | bcf8ea9554bbed7590b1e13f93de22ba57b4b853 (patch) | |
tree | 45656772d29524ddaa17a8b8c1577485a65fc17f /include/llvm/Support/raw_ostream.h | |
parent | 58256f83c86d85df24874db0db78b0bc972d6258 (diff) | |
download | llvm-bcf8ea9554bbed7590b1e13f93de22ba57b4b853.tar.gz llvm-bcf8ea9554bbed7590b1e13f93de22ba57b4b853.tar.bz2 llvm-bcf8ea9554bbed7590b1e13f93de22ba57b4b853.tar.xz |
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
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 852f7db4a1..1eb92ed0ff 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; } |