diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-16 16:28:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-16 16:28:05 +0000 |
commit | 6e8427e066088f091e7d0092f6bf732c89cf09eb (patch) | |
tree | a5b4b4b65571851507d116f524b615f721715105 /clang/lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | be6f3181dd6fdc23388d00476379c0fbc1b6a5c7 (diff) | |
download | llvm-6e8427e066088f091e7d0092f6bf732c89cf09eb.zip llvm-6e8427e066088f091e7d0092f6bf732c89cf09eb.tar.gz llvm-6e8427e066088f091e7d0092f6bf732c89cf09eb.tar.bz2 |
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.
llvm-svn: 101473
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | clang/lib/Frontend/PrintPreprocessedOutput.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp index b45188f..17edd12 100644 --- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp @@ -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); |