Swift: Remove AbstractTypeParamDecl mangling.

AbstractTypeParamDecl itself was removed in 36b3f0ee12.
This commit is contained in:
Alexandre Boulgakov
2023-06-28 12:34:01 +01:00
parent 81372d0b63
commit 4ed90d5234
2 changed files with 1 additions and 7 deletions

View File

@@ -137,13 +137,8 @@ void SwiftMangler::indexExtensions(llvm::ArrayRef<swift::Decl*> siblings) {
}
}
SwiftMangledName SwiftMangler::visitAbstractTypeParamDecl(
const swift::AbstractTypeParamDecl* decl) {
return visitValueDecl(decl, /* force */ true);
}
SwiftMangledName SwiftMangler::visitGenericTypeParamDecl(const swift::GenericTypeParamDecl* decl) {
return visitAbstractTypeParamDecl(decl) << '_' << decl->getDepth() << '_' << decl->getIndex();
return visitValueDecl(decl, /*force=*/true) << '_' << decl->getDepth() << '_' << decl->getIndex();
}
SwiftMangledName SwiftMangler::visitModuleType(const swift::ModuleType* type) {

View File

@@ -60,7 +60,6 @@ class SwiftMangler : private swift::TypeVisitor<SwiftMangler, SwiftMangledName>,
SwiftMangledName visitAbstractFunctionDecl(const swift::AbstractFunctionDecl* decl);
SwiftMangledName visitSubscriptDecl(const swift::SubscriptDecl* decl);
SwiftMangledName visitVarDecl(const swift::VarDecl* decl);
SwiftMangledName visitAbstractTypeParamDecl(const swift::AbstractTypeParamDecl* decl);
SwiftMangledName visitGenericTypeParamDecl(const swift::GenericTypeParamDecl* decl);
// default fallback for non mangled types. This covers types that should not appear in normal