[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

@@ -1158,9 +1158,6 @@ static StringRef getTypeName(SDKContext &Ctx, Type Ty,
if (Ty->isVoid()) {
return Ctx.buffer("Void");
}
if (auto *NAT = dyn_cast<NameAliasType>(Ty.getPointer())) {
return NAT->getDecl()->getNameStr();
}
if (auto *BNAT = dyn_cast<BoundNameAliasType>(Ty.getPointer())) {
return BNAT->getDecl()->getNameStr();
}
@@ -1365,11 +1362,6 @@ static SDKNode *constructTypeNode(SDKContext &Ctx, Type T,
SDKNode* Root = SDKNodeInitInfo(Ctx, T, InitInfo)
.createSDKNode(SDKNodeKind::TypeNominal);
if (auto NAT = dyn_cast<NameAliasType>(T.getPointer())) {
SDKNode* Root = SDKNodeInitInfo(Ctx, T).createSDKNode(SDKNodeKind::TypeNameAlias);
Root->addChild(constructTypeNode(Ctx, NAT->getCanonicalType()));
return Root;
}
if (auto BNAT = dyn_cast<BoundNameAliasType>(T.getPointer())) {
SDKNode* Root = SDKNodeInitInfo(Ctx, T).createSDKNode(SDKNodeKind::TypeNameAlias);
Root->addChild(constructTypeNode(Ctx, BNAT->getCanonicalType()));