[llvm-commits] [llvm] r82553 - /llvm/trunk/include/llvm/Support/FormattedStream.h

Daniel Dunbar daniel at zuster.org
Tue Sep 22 11:33:42 CDT 2009

Author: ddunbar
Date: Tue Sep 22 11:33:42 2009
New Revision: 82553

URL: http://llvm.org/viewvc/llvm-project?rev=82553&view=rev
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. :)


Modified: llvm/trunk/include/llvm/Support/FormattedStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FormattedStream.h?rev=82553&r1=82552&r2=82553&view=diff

--- llvm/trunk/include/llvm/Support/FormattedStream.h (original)
+++ llvm/trunk/include/llvm/Support/FormattedStream.h Tue Sep 22 11:33:42 2009
@@ -105,15 +105,10 @@
       // 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())
-        SetBuffered();
+        SetUnbuffered();
       Scanned = 0;

More information about the llvm-commits mailing list