mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use ValueBase instead of SILInstructions for delete notifications.
This enables e.g. notifications about the removal of SILArguments.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
namespace swift {
|
||||
|
||||
class SILInstruction;
|
||||
class ValueBase;
|
||||
|
||||
/// A protocol (or inferface) for handling instruction deletion notifications.
|
||||
///
|
||||
@@ -29,7 +29,7 @@ struct DeleteNotificationHandler {
|
||||
virtual ~DeleteNotificationHandler() {}
|
||||
|
||||
/// Handle the invalidation message for the value \p Value.
|
||||
virtual void handleDeleteNotification(swift::SILInstruction *Instr) { }
|
||||
virtual void handleDeleteNotification(swift::ValueBase *Value) { }
|
||||
};
|
||||
|
||||
} // end swift namespace
|
||||
|
||||
Reference in New Issue
Block a user