aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-12 22:02:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-12 22:02:44 +0000
commitbcf8ea9554bbed7590b1e13f93de22ba57b4b853 (patch)
tree45656772d29524ddaa17a8b8c1577485a65fc17f
parent58256f83c86d85df24874db0db78b0bc972d6258 (diff)
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
-rw-r--r--include/llvm/Support/raw_ostream.h6
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;
}