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:
Slava Pestov
2016-08-20 05:10:24 -07:00
parent 58ceb472fa
commit 4bfaa47890
12 changed files with 10 additions and 403 deletions

View File

@@ -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()) {