Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-01-12 03:14:28 -08:00
18 changed files with 732 additions and 28 deletions

View File

@@ -1197,6 +1197,13 @@ static bool performAction(CompilerInstance &Instance,
llvm::outs(), PrintOptions::printEverything());
return Instance.getASTContext().hadError();
});
case FrontendOptions::ActionType::PrintASTDecl:
return withSemanticAnalysis(
Instance, observer, [](CompilerInstance &Instance) {
getPrimaryOrMainSourceFile(Instance).print(
llvm::outs(), PrintOptions::printDeclarations());
return Instance.getASTContext().hadError();
});
case FrontendOptions::ActionType::DumpScopeMaps:
return withSemanticAnalysis(
Instance, observer, [](CompilerInstance &Instance) {