Use ValueBase instead of SILInstructions for delete notifications.

This enables e.g. notifications about the removal of SILArguments.
This commit is contained in:
Roman Levenstein
2015-12-04 15:16:05 -08:00
parent ea848834f9
commit 3bc1bd93c8
5 changed files with 8 additions and 7 deletions

View File

@@ -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