]> granicus.if.org Git - clang/commitdiff
Remove this hard-coded buffer size. In some basic experiments preprocessing
authorDan Gohman <gohman@apple.com>
Fri, 16 Apr 2010 16:28:05 +0000 (16:28 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 16 Apr 2010 16:28:05 +0000 (16:28 +0000)
large files, this doesn't seem significantly better than just letting
raw_ostream pick a buffer size.

This code predates raw-ostream's automatic buffer sizing; in fact, it
was introduced as part of the code which would eventually become
raw_ostream.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101473 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PrintPreprocessedOutput.cpp

index b45188f3310f8a26fb2a10e330aa301d437ee07e..17edd12a675818402c201011024ec988671174f0 100644 (file)
@@ -492,8 +492,6 @@ void clang::DoPrintPreprocessedInput(Preprocessor &PP, llvm::raw_ostream *OS,
   // to -C or -CC.
   PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments);
 
-  OS->SetBufferSize(64*1024);
-
   PrintPPOutputPPCallbacks *Callbacks =
       new PrintPPOutputPPCallbacks(PP, *OS, !Opts.ShowLineMarkers,
                                    Opts.ShowMacros);