summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-06-15 09:57:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-06-15 09:57:52 +0000
commitb188455eb29695bc9835ec7cf1afc673e6cb5e16 (patch)
tree4575dc1e6b900e5dac7e60ac156474e6c2f9bd72 /clang/lib/Frontend/InitPreprocessor.cpp
parent1283c6a066eb31b2188c5e6810c3b5f948565d44 (diff)
downloadbcm5719-llvm-b188455eb29695bc9835ec7cf1afc673e6cb5e16.tar.gz
bcm5719-llvm-b188455eb29695bc9835ec7cf1afc673e6cb5e16.zip
PR4388: get rid of an extra # line directive; in addition to being
unnecessary, this was causing issues for assembler-with-cpp mode, which doesn't process the directive. llvm-svn: 73382
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 6cff75daf3c..41908ad00e4 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -472,11 +472,7 @@ bool InitializePreprocessor(Preprocessor &PP,
AddImplicitIncludePTH(PredefineBuffer, PP, I->first);
else
AddImplicitInclude(PredefineBuffer, I->first);
- }
-
- LineDirective = "# 2 \"<built-in>\" 2 3\n";
- PredefineBuffer.insert(PredefineBuffer.end(),
- LineDirective, LineDirective+strlen(LineDirective));
+ }
// Null terminate PredefinedBuffer and add it.
PredefineBuffer.push_back(0);
OpenPOWER on IntegriCloud