From b759865495441386c58e3c56ec31c53121f45834 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 22 Sep 2009 16:33:42 +0000 Subject: [PATCH] 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 --- include/llvm/Support/FormattedStream.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h index 6b51144e9ef..24a3546200a 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; -- 2.34.1