Optimizer: remove the now unused NonTransparentFunctionOwnershipModelEliminator pass

Also remove the `skipStdlibModule` flag from the OwnershipModelEliminator, because it's always false
This commit is contained in:
Erik Eckstein
2025-09-24 09:39:29 +02:00
parent a322fd9209
commit 7217722c83
7 changed files with 11 additions and 98 deletions

View File

@@ -393,10 +393,6 @@ private:
bool parsedAsSerializedSIL;
/// 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.
@@ -449,15 +445,9 @@ public:
deserializationNotificationHandlers.erase(handler);
}
bool hasRegisteredDeserializationNotificationHandlerForNonTransparentFuncOME() {
return regDeserializationNotificationHandlerForNonTransparentFuncOME;
}
bool hasRegisteredDeserializationNotificationHandlerForAllFuncOME() {
return regDeserializationNotificationHandlerForAllFuncOME;
}
void setRegisteredDeserializationNotificationHandlerForNonTransparentFuncOME() {
regDeserializationNotificationHandlerForNonTransparentFuncOME = true;
}
void setRegisteredDeserializationNotificationHandlerForAllFuncOME() {
regDeserializationNotificationHandlerForAllFuncOME = true;
}