[ValueHandle] Allow invalidation of BB arguments.

This commit changes the invalidation handler from SILInstruction to ValueBase,
and also invalidates SILArguments.
This commit is contained in:
Nadav Rotem
2015-12-04 17:08:39 -08:00
parent 881b2b48d5
commit 9233217ded
5 changed files with 18 additions and 7 deletions

View File

@@ -676,8 +676,8 @@ removeDeleteNotificationHandler(DeleteNotificationHandler* Handler) {
NotificationHandlers.remove(Handler);
}
void SILModule::notifyDeleteHandlers(ValueBase *Item) {
void SILModule::notifyDeleteHandlers(ValueBase *V) {
for (auto *Handler : NotificationHandlers) {
Handler->handleDeleteNotification(Item);
Handler->handleDeleteNotification(V);
}
}