File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
include/swift/SILOptimizer/PassManager Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ class SILPassManager {
203
203
}
204
204
205
205
// / \brief Iterate over all analysis and notify them of a deleted function.
206
- void notifyDeleteFunction (SILFunction *F) {
206
+ void notifyWillDeleteFunction (SILFunction *F) {
207
207
// Invalidate the analysis (unless they are locked)
208
208
for (auto AP : Analyses)
209
209
if (!AP->isLocked ())
Original file line number Diff line number Diff line change @@ -164,9 +164,9 @@ namespace swift {
164
164
PM->invalidateFunctionTables ();
165
165
}
166
166
167
- // / Inform the pass manager of a deleted function.
168
- void notifyDeleteFunction (SILFunction *F) {
169
- PM->notifyDeleteFunction (F);
167
+ // / Inform the pass manager that we are going to delete a function.
168
+ void notifyWillDeleteFunction (SILFunction *F) {
169
+ PM->notifyWillDeleteFunction (F);
170
170
}
171
171
172
172
// / Inform the pass manager of an added function.
Original file line number Diff line number Diff line change @@ -702,7 +702,7 @@ class DeadFunctionElimination : FunctionLivenessComputation {
702
702
703
703
DEBUG (llvm::dbgs () << " erase dead function " << F->getName () << " \n " );
704
704
NumDeadFunc++;
705
- DFEPass->notifyDeleteFunction (F);
705
+ DFEPass->notifyWillDeleteFunction (F);
706
706
Module->eraseFunction (F);
707
707
}
708
708
if (changedTables)
Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ class MandatoryInlining : public SILModuleTransform {
673
673
if (F.getRepresentation () == SILFunctionTypeRepresentation::ObjCMethod)
674
674
continue ;
675
675
676
- notifyDeleteFunction (&F);
676
+ notifyWillDeleteFunction (&F);
677
677
678
678
// Okay, just erase the function from the module.
679
679
M->eraseFunction (&F);
You can’t perform that action at this time.
0 commit comments