summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-08-11 22:11:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-08-11 22:11:07 +0000
commit35f986d3cd6942cff0fc7f78062924ebebd6988d (patch)
treee525c53745feffb78574b060559e63c1659c697e /clang/lib/Frontend/FrontendActions.cpp
parentdffd85371606c095882a31dc3cb315c7260a27bf (diff)
downloadbcm5719-llvm-35f986d3cd6942cff0fc7f78062924ebebd6988d.tar.gz
bcm5719-llvm-35f986d3cd6942cff0fc7f78062924ebebd6988d.zip
Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dump
anyway. If -ast-dump *is* also provided, then dump the AST declarations as well as the lookup results. This is invaluable for cross-correlating the lookup information with the declarations actually found. llvm-svn: 215393
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index e5830d6ae68..f3be243e194 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -55,6 +55,7 @@ ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
std::unique_ptr<ASTConsumer>
ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter,
+ CI.getFrontendOpts().ASTDumpDecls,
CI.getFrontendOpts().ASTDumpLookups);
}
OpenPOWER on IntegriCloud