@@ -960,9 +960,6 @@ static bool performCompile(CompilerInstance &Instance,
960
960
if (Action == FrontendOptions::ActionType::ResolveImports)
961
961
return Context.hadError ();
962
962
963
- if (observer)
964
- observer->performedSemanticAnalysis (Instance);
965
-
966
963
if (Stats)
967
964
countStatsPostSema (*Stats, Instance);
968
965
@@ -1051,10 +1048,6 @@ static bool performMandatorySILPasses(CompilerInvocation &Invocation,
1051
1048
} else if (!Invocation.getDiagnosticOptions ().SkipDiagnosticPasses ) {
1052
1049
if (runSILDiagnosticPasses (*SM))
1053
1050
return true ;
1054
-
1055
- if (observer) {
1056
- observer->performedSILDiagnostics (*SM);
1057
- }
1058
1051
} else {
1059
1052
// Even if we are not supposed to run the diagnostic passes, we still need
1060
1053
// to run the ownership evaluator.
@@ -1154,9 +1147,6 @@ static bool processCommandLineAndRunImmediately(CompilerInvocation &Invocation,
1154
1147
ProcessCmdLine (opts.ImmediateArgv .begin (), opts.ImmediateArgv .end ());
1155
1148
Instance.setSILModule (std::move (SM));
1156
1149
1157
- if (observer)
1158
- observer->aboutToRunImmediately (Instance);
1159
-
1160
1150
ReturnValue =
1161
1151
RunImmediately (Instance, CmdLine, IRGenOpts, Invocation.getSILOptions ());
1162
1152
return Instance.getASTContext ().hadError ();
@@ -1243,9 +1233,6 @@ static bool performCompileStepsPostSILGen(
1243
1233
SILOptions &SILOpts = Invocation.getSILOptions ();
1244
1234
IRGenOptions &IRGenOpts = Invocation.getIRGenOptions ();
1245
1235
1246
- if (observer)
1247
- observer->performedSILGeneration (*SM);
1248
-
1249
1236
if (Stats)
1250
1237
countStatsPostSILGen (*Stats, *SM);
1251
1238
@@ -1301,9 +1288,6 @@ static bool performCompileStepsPostSILGen(
1301
1288
1302
1289
performSILOptimizations (Invocation, SM.get ());
1303
1290
1304
- if (observer)
1305
- observer->performedSILOptimization (*SM);
1306
-
1307
1291
if (Stats)
1308
1292
countStatsPostSILOpt (*Stats, *SM);
1309
1293
@@ -1873,8 +1857,3 @@ int swift::performFrontend(ArrayRef<const char *> Args,
1873
1857
1874
1858
void FrontendObserver::parsedArgs (CompilerInvocation &invocation) {}
1875
1859
void FrontendObserver::configuredCompiler (CompilerInstance &instance) {}
1876
- void FrontendObserver::performedSemanticAnalysis (CompilerInstance &instance) {}
1877
- void FrontendObserver::performedSILGeneration (SILModule &module ) {}
1878
- void FrontendObserver::performedSILDiagnostics (SILModule &module ) {}
1879
- void FrontendObserver::performedSILOptimization (SILModule &module ) {}
1880
- void FrontendObserver::aboutToRunImmediately (CompilerInstance &instance) {}
0 commit comments