[AST] Remove now-unused NameAliasType.

This commit is contained in:
Doug Gregor
2018-03-25 20:57:47 -07:00
parent 9cfbd30215
commit c43f96a855
23 changed files with 13 additions and 204 deletions

View File

@@ -3605,18 +3605,6 @@ void Serializer::writeType(Type ty) {
TypeID());
break;
}
case TypeKind::NameAlias: {
auto nameAlias = cast<NameAliasType>(ty.getPointer());
const TypeAliasDecl *typeAlias = nameAlias->getDecl();
unsigned abbrCode = DeclTypeAbbrCodes[NameAliasTypeLayout::Code];
NameAliasTypeLayout::emitRecord(Out, ScratchRecord, abbrCode,
addDeclRef(typeAlias,
/*forceSerialization*/false,
/*allowTypeAliasXRef*/true),
addTypeRef(ty->getCanonicalType()));
break;
}
case TypeKind::BoundNameAlias: {
auto boundAlias = cast<BoundNameAliasType>(ty.getPointer());
const TypeAliasDecl *typeAlias = boundAlias->getDecl();