mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Rename "alias name type" to "builtin alias type".
We still use the old layout for NameAliasType for builtin types, so rename the Layout struct and corresponding code to describe its new (more restricted) purpose.
This commit is contained in:
@@ -3597,12 +3597,12 @@ void Serializer::writeType(Type ty) {
|
||||
TypeAliasDecl *typeAlias =
|
||||
findTypeAliasForBuiltin(M->getASTContext(), ty);
|
||||
|
||||
unsigned abbrCode = DeclTypeAbbrCodes[NameAliasTypeLayout::Code];
|
||||
NameAliasTypeLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
addDeclRef(typeAlias,
|
||||
/*forceSerialization*/false,
|
||||
/*allowTypeAliasXRef*/true),
|
||||
TypeID());
|
||||
unsigned abbrCode = DeclTypeAbbrCodes[BuiltinAliasTypeLayout::Code];
|
||||
BuiltinAliasTypeLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
addDeclRef(typeAlias,
|
||||
/*forceSerialization*/false,
|
||||
/*allowTypeAliasXRef*/true),
|
||||
TypeID());
|
||||
break;
|
||||
}
|
||||
case TypeKind::BoundNameAlias: {
|
||||
@@ -3977,7 +3977,7 @@ void Serializer::writeType(Type ty) {
|
||||
void Serializer::writeAllDeclsAndTypes() {
|
||||
BCBlockRAII restoreBlock(Out, DECLS_AND_TYPES_BLOCK_ID, 8);
|
||||
using namespace decls_block;
|
||||
registerDeclTypeAbbr<NameAliasTypeLayout>();
|
||||
registerDeclTypeAbbr<BuiltinAliasTypeLayout>();
|
||||
registerDeclTypeAbbr<BoundNameAliasTypeLayout>();
|
||||
registerDeclTypeAbbr<GenericTypeParamDeclLayout>();
|
||||
registerDeclTypeAbbr<AssociatedTypeDeclLayout>();
|
||||
|
||||
Reference in New Issue
Block a user