summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-25 02:41:16 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-25 02:41:16 +0000
commit335c5a42e9cfa70436bce30a6867cb722cac339c (patch)
tree2997d3c3e38d4ef6959250e95ceeff79713fb470 /clang/lib/Frontend/CompilerInstance.cpp
parentef31f376bb7f16f010db30359740a810c2681819 (diff)
downloadbcm5719-llvm-335c5a42e9cfa70436bce30a6867cb722cac339c.tar.gz
bcm5719-llvm-335c5a42e9cfa70436bce30a6867cb722cac339c.zip
Don't record nested macro expansions in the preprocessing record,
it can only bring pain when dealing with preprocessor abuse (see: boost). rdar://10898986 llvm-svn: 151427
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 8d84277f015..2ade1c17e13 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -257,8 +257,7 @@ void CompilerInstance::createPreprocessor() {
}
if (PPOpts.DetailedRecord)
- PP->createPreprocessingRecord(
- PPOpts.DetailedRecordIncludesNestedMacroExpansions);
+ PP->createPreprocessingRecord();
InitializePreprocessor(*PP, PPOpts, getHeaderSearchOpts(), getFrontendOpts());
OpenPOWER on IntegriCloud