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 | 8ed4ff6d05ef41027ddaa13000309e719fa27ce8 (patch) | |
tree | 5deff8ff02c93287140480c8828b67eb9a7cc038 /lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | 1c7658fd32f26a3ea5fa1421494b2449c9eba3c9 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | lib/Frontend/PrintPreprocessedOutput.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp index b45188f331..17edd12a67 100644 --- a/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/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); |