diff options
Diffstat (limited to 'lib/Frontend/FrontendActions.cpp')
| -rw-r--r-- | lib/Frontend/FrontendActions.cpp | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Frontend/FrontendActions.cpp b/lib/Frontend/FrontendActions.cpp index 737ee4a098bb..24960cf6a0c9 100644 --- a/lib/Frontend/FrontendActions.cpp +++ b/lib/Frontend/FrontendActions.cpp @@ -47,13 +47,18 @@ void InitOnlyAction::ExecuteAction() {  ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI,                                                 StringRef InFile) {    if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) -    return CreateASTPrinter(OS); +    return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter);    return 0;  }  ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI,                                                StringRef InFile) { -  return CreateASTDumper(); +  return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter); +} + +ASTConsumer *ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI, +                                                  StringRef InFile) { +  return CreateASTDeclNodeLister();  }  ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI, @@ -131,7 +136,7 @@ ASTConsumer *GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI,  ///  /// \param Module The module we're collecting includes from.  /// -/// \param Includes Will be augmented with the set of #includes or #imports +/// \param Includes Will be augmented with the set of \#includes or \#imports  /// needed to load all of the named headers.  static void collectModuleHeaderIncludes(const LangOptions &LangOpts,                                          FileManager &FileMgr,  | 
