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

@@ -204,9 +204,9 @@ public:
/// Remove the delete notification handler \p Handler from the module context.
void removeDeleteNotificationHandler(DeleteNotificationHandler* Handler);
/// Send the invalidation message that \p Inst is being deleted to all
/// Send the invalidation message that \p V is being deleted to all
/// registered handlers. The order of handlers is deterministic but arbitrary.
void notifyDeleteHandlers(SILInstruction *Inst);
void notifyDeleteHandlers(ValueBase *V);
/// \brief Get a uniqued pointer to a SIL type list.
SILTypeList *getSILTypeList(ArrayRef<SILType> Types) const;