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:
Daniel Dunbar 2009-09-22 16:33:42 +00:00
parent b2942cb5cb
commit 7e3aa3f68c
1 changed files with 1 additions and 6 deletions

View File

@ -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;