mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Nuke GenericParamList::AllArchetypes
Now that SILFunctions no longer reference a GenericParamList, we don't need to de-serialize cross-module references to archetypes anymore. This was the last remaining usage of AllArchetypes, so we can finally rip it out.
This commit is contained in:
@@ -958,13 +958,8 @@ bool Serializer::writeGenericParams(const GenericParamList *genericParams) {
|
||||
if (!genericParams)
|
||||
return true;
|
||||
|
||||
SmallVector<TypeID, 8> archetypeIDs;
|
||||
for (auto archetype : genericParams->getAllArchetypes())
|
||||
archetypeIDs.push_back(addTypeRef(archetype));
|
||||
|
||||
unsigned abbrCode = DeclTypeAbbrCodes[GenericParamListLayout::Code];
|
||||
GenericParamListLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
archetypeIDs);
|
||||
GenericParamListLayout::emitRecord(Out, ScratchRecord, abbrCode);
|
||||
|
||||
abbrCode = DeclTypeAbbrCodes[GenericParamLayout::Code];
|
||||
for (auto next : genericParams->getParams()) {
|
||||
|
||||
Reference in New Issue
Block a user