Revert "Merge pull request #33205 from meg-gupta/ometofunctionpass"

This reverts commit 8dbac48c18, reversing
changes made to c22ba90700.
This commit is contained in:
Meghana Gupta
2020-09-25 11:49:52 -07:00
parent 49d93c58a7
commit 77a76a8422
9 changed files with 66 additions and 98 deletions

View File

@@ -263,15 +263,6 @@ private:
/// to ensure that the module is serialized only once.
bool serialized;
/// Set if we have registered a deserialization notification handler for
/// lowering ownership in non transparent functions.
/// This gets set in NonTransparent OwnershipModelEliminator pass.
bool regDeserializationNotificationHandlerForNonTransparentFuncOME;
/// Set if we have registered a deserialization notification handler for
/// lowering ownership in transparent functions.
/// This gets set in OwnershipModelEliminator pass.
bool regDeserializationNotificationHandlerForAllFuncOME;
/// Action to be executed for serializing the SILModule.
ActionCallback SerializeSILAction;
@@ -310,19 +301,6 @@ public:
deserializationNotificationHandlers.erase(handler);
}
bool hasRegisteredDeserializationNotificationHandlerForNonTransparentFuncOME() {
return regDeserializationNotificationHandlerForNonTransparentFuncOME;
}
bool hasRegisteredDeserializationNotificationHandlerForAllFuncOME() {
return regDeserializationNotificationHandlerForAllFuncOME;
}
void setRegisteredDeserializationNotificationHandlerForNonTransparentFuncOME() {
regDeserializationNotificationHandlerForNonTransparentFuncOME = true;
}
void setRegisteredDeserializationNotificationHandlerForAllFuncOME() {
regDeserializationNotificationHandlerForAllFuncOME = true;
}
/// Add a delete notification handler \p Handler to the module context.
void registerDeleteNotificationHandler(DeleteNotificationHandler* Handler);