Commit 3bc1bd9 1 parent ea84883 commit 3bc1bd9 Copy full SHA for 3bc1bd9
File tree 5 files changed +8
-7
lines changed
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 15
15
16
16
namespace swift {
17
17
18
- class SILInstruction ;
18
+ class ValueBase ;
19
19
20
20
// / A protocol (or inferface) for handling instruction deletion notifications.
21
21
// /
@@ -29,7 +29,7 @@ struct DeleteNotificationHandler {
29
29
virtual ~DeleteNotificationHandler () {}
30
30
31
31
// / Handle the invalidation message for the value \p Value.
32
- virtual void handleDeleteNotification (swift::SILInstruction *Instr ) { }
32
+ virtual void handleDeleteNotification (swift::ValueBase *Value ) { }
33
33
};
34
34
35
35
} // end swift namespace
Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ class SILModule {
204
204
// / Remove the delete notification handler \p Handler from the module context.
205
205
void removeDeleteNotificationHandler (DeleteNotificationHandler* Handler);
206
206
207
- // / Send the invalidation message that \p Inst is being deleted to all
207
+ // / Send the invalidation message that \p V is being deleted to all
208
208
// / registered handlers. The order of handlers is deterministic but arbitrary.
209
- void notifyDeleteHandlers (SILInstruction *Inst );
209
+ void notifyDeleteHandlers (ValueBase *V );
210
210
211
211
// / \brief Get a uniqued pointer to a SIL type list.
212
212
SILTypeList *getSILTypeList (ArrayRef<SILType> Types) const ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ namespace swift {
22
22
23
23
class SILValue ;
24
24
class SILInstruction ;
25
+ class ValueBase ;
25
26
class SideEffectAnalysis ;
26
27
27
28
// / This class is a simple wrapper around an alias analysis cache. This is
@@ -82,7 +83,7 @@ class AliasAnalysis : public SILAnalysis {
82
83
bool typesMayAlias (SILType T1, SILType T2);
83
84
84
85
85
- virtual void handleDeleteNotification (SILInstruction *I) override {
86
+ virtual void handleDeleteNotification (ValueBase *I) override {
86
87
}
87
88
88
89
public:
Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ removeDeleteNotificationHandler(DeleteNotificationHandler* Handler) {
676
676
NotificationHandlers.remove (Handler);
677
677
}
678
678
679
- void SILModule::notifyDeleteHandlers (SILInstruction *Item) {
679
+ void SILModule::notifyDeleteHandlers (ValueBase *Item) {
680
680
for (auto *Handler : NotificationHandlers) {
681
681
Handler->handleDeleteNotification (Item);
682
682
}
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ class SILCombine : public SILFunctionTransform {
355
355
}
356
356
}
357
357
358
- virtual void handleDeleteNotification (SILInstruction *I) override {
358
+ virtual void handleDeleteNotification (ValueBase *I) override {
359
359
}
360
360
361
361
StringRef getName () override { return " SIL Combine" ; }
You can’t perform that action at this time.
0 commit comments