forked from OSchip/llvm-project
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. :) llvm-svn: 82553
This commit is contained in:
parent
b2942cb5cb
commit
7e3aa3f68c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue