llvm.org GIT mirror llvm / b759865
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 Daniel Dunbar 10 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
104104 // own buffering, and it doesn't need or want TheStream to do another
105105 // layer of buffering underneath. Resize the buffer to what TheStream
106106 // had been using, and tell TheStream not to do its own buffering.
107 //
108 // If the underlying stream is unbuffered, just use its preferred buffer
109 // size. We can't treat this as an honest wish for unbuffered output,
110 // because it could very well be a stream we previously forced to be
111 // unbuffered.
112107 if (size_t BufferSize = TheStream->GetBufferSize())
113108 SetBufferSize(BufferSize);
114109 else
115 SetBuffered();
110 SetUnbuffered();
116111 TheStream->SetUnbuffered();
117112
118113 Scanned = 0;