aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/FormattedStream.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-22 16:33:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-22 16:33:42 +0000
commitb759865495441386c58e3c56ec31c53121f45834 (patch)
treebfbf3630009b2e90394ebae3fada8644295f3b6c /include/llvm/Support/FormattedStream.h
parent43fa15b4511af35743049110a6f3227be7ba6220 (diff)
downloadexternal_llvm-b759865495441386c58e3c56ec31c53121f45834.zip
external_llvm-b759865495441386c58e3c56ec31c53121f45834.tar.gz
external_llvm-b759865495441386c58e3c56ec31c53121f45834.tar.bz2
Revert "Don't allow formatted_ostream to be unbuffered, even if its underlying
buffer", while we work out a solution. Dan convinced me that making debugging annoying for him is worse than 10x being slower for me. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FormattedStream.h')
-rw-r--r--include/llvm/Support/FormattedStream.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h
index 6b51144..24a3546 100644
--- a/include/llvm/Support/FormattedStream.h
+++ b/include/llvm/Support/FormattedStream.h
@@ -105,15 +105,10 @@ namespace llvm
// own buffering, and it doesn't need or want TheStream to do another
// layer of buffering underneath. Resize the buffer to what TheStream
// had been using, and tell TheStream not to do its own buffering.
- //
- // If the underlying stream is unbuffered, just use its preferred buffer
- // size. We can't treat this as an honest wish for unbuffered output,
- // because it could very well be a stream we previously forced to be
- // unbuffered.
if (size_t BufferSize = TheStream->GetBufferSize())
SetBufferSize(BufferSize);
else
- SetBuffered();
+ SetUnbuffered();
TheStream->SetUnbuffered();
Scanned = 0;