File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -908,6 +908,8 @@ bool CodeGenAction::loadLinkModules(CompilerInstance &CI) {
908
908
bool CodeGenAction::hasIRSupport () const { return true ; }
909
909
910
910
void CodeGenAction::EndSourceFileAction () {
911
+ ASTFrontendAction::EndSourceFileAction ();
912
+
911
913
// If the consumer creation failed, do nothing.
912
914
if (!getCompilerInstance ().hasASTConsumer ())
913
915
return ;
@@ -932,7 +934,7 @@ CodeGenerator *CodeGenAction::getCodeGenerator() const {
932
934
bool CodeGenAction::BeginSourceFileAction (CompilerInstance &CI) {
933
935
if (CI.getFrontendOpts ().GenReducedBMI )
934
936
CI.getLangOpts ().setCompilingModule (LangOptions::CMK_ModuleInterface);
935
- return true ;
937
+ return ASTFrontendAction::BeginSourceFileAction (CI) ;
936
938
}
937
939
938
940
static std::unique_ptr<raw_pwrite_stream>
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ bool GeneratePCHAction::shouldEraseOutputFiles() {
182
182
183
183
bool GeneratePCHAction::BeginSourceFileAction (CompilerInstance &CI) {
184
184
CI.getLangOpts ().CompilingPCH = true ;
185
- return true ;
185
+ return ASTFrontendAction::BeginSourceFileAction (CI) ;
186
186
}
187
187
188
188
std::vector<std::unique_ptr<ASTConsumer>>
Original file line number Diff line number Diff line change @@ -104,12 +104,13 @@ bool FixItAction::BeginSourceFileAction(CompilerInstance &CI) {
104
104
}
105
105
Rewriter.reset (new FixItRewriter (CI.getDiagnostics (), CI.getSourceManager (),
106
106
CI.getLangOpts (), FixItOpts.get ()));
107
- return true ;
107
+ return ASTFrontendAction::BeginSourceFileAction (CI) ;
108
108
}
109
109
110
110
void FixItAction::EndSourceFileAction () {
111
111
// Otherwise rewrite all files.
112
112
Rewriter->WriteFixedFiles ();
113
+ ASTFrontendAction::EndSourceFileAction ();
113
114
}
114
115
115
116
bool FixItRecompile::BeginInvocation (CompilerInstance &CI) {
@@ -299,7 +300,7 @@ bool RewriteIncludesAction::BeginSourceFileAction(CompilerInstance &CI) {
299
300
std::make_unique<RewriteImportsListener>(CI, OutputStream));
300
301
}
301
302
302
- return true ;
303
+ return PreprocessorFrontendAction::BeginSourceFileAction (CI) ;
303
304
}
304
305
305
306
void RewriteIncludesAction::ExecuteAction () {
You can’t perform that action at this time.
0 commit comments