[cfe-commits] r101473 - /cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp
Dan Gohman
gohman at apple.com
Fri Apr 16 09:28:05 PDT 2010
Author: djg
Date: Fri Apr 16 11:28:05 2010
New Revision: 101473
URL: http://llvm.org/viewvc/llvm-project?rev=101473&view=rev
Log:
Remove this hard-coded buffer size. In some basic experiments preprocessing
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.
Modified:
cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp
Modified: cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp?rev=101473&r1=101472&r2=101473&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp Fri Apr 16 11:28:05 2010
@@ -492,8 +492,6 @@
// to -C or -CC.
PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments);
- OS->SetBufferSize(64*1024);
-
PrintPPOutputPPCallbacks *Callbacks =
new PrintPPOutputPPCallbacks(PP, *OS, !Opts.ShowLineMarkers,
Opts.ShowMacros);
More information about the cfe-commits
mailing list