mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Distributed: Remove logic related to ad-hoc requirements from SILFunction
Ad-hoc requirements are now obsolete by making `remoteCall`,
`record{Argument, ReturnType}`, `decodeNextArgument` protocols
requirements and injecting witness tables for `SerializationRequirement`
conformances during IRGen.
This commit is contained in:
@@ -154,7 +154,6 @@ SILModule::~SILModule() {
|
||||
for (SILFunction &F : *this) {
|
||||
F.dropAllReferences();
|
||||
F.dropDynamicallyReplacedFunction();
|
||||
F.dropReferencedAdHocRequirementWitnessFunction();
|
||||
F.clearSpecializeAttrs();
|
||||
}
|
||||
|
||||
@@ -492,7 +491,6 @@ void SILModule::eraseFunction(SILFunction *F) {
|
||||
// (References are not needed anymore.)
|
||||
F->clear();
|
||||
F->dropDynamicallyReplacedFunction();
|
||||
F->dropReferencedAdHocRequirementWitnessFunction();
|
||||
// Drop references for any _specialize(target:) functions.
|
||||
F->clearSpecializeAttrs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user