Skip to content

Commit 4ed90d5

Browse files
committed
Swift: Remove AbstractTypeParamDecl mangling.
AbstractTypeParamDecl itself was removed in swiftlang/swift@36b3f0e.
1 parent 81372d0 commit 4ed90d5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

swift/extractor/mangler/SwiftMangler.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,8 @@ void SwiftMangler::indexExtensions(llvm::ArrayRef<swift::Decl*> siblings) {
137137
}
138138
}
139139

140-
SwiftMangledName SwiftMangler::visitAbstractTypeParamDecl(
141-
const swift::AbstractTypeParamDecl* decl) {
142-
return visitValueDecl(decl, /* force */ true);
143-
}
144-
145140
SwiftMangledName SwiftMangler::visitGenericTypeParamDecl(const swift::GenericTypeParamDecl* decl) {
146-
return visitAbstractTypeParamDecl(decl) << '_' << decl->getDepth() << '_' << decl->getIndex();
141+
return visitValueDecl(decl, /*force=*/true) << '_' << decl->getDepth() << '_' << decl->getIndex();
147142
}
148143

149144
SwiftMangledName SwiftMangler::visitModuleType(const swift::ModuleType* type) {

swift/extractor/mangler/SwiftMangler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class SwiftMangler : private swift::TypeVisitor<SwiftMangler, SwiftMangledName>,
6060
SwiftMangledName visitAbstractFunctionDecl(const swift::AbstractFunctionDecl* decl);
6161
SwiftMangledName visitSubscriptDecl(const swift::SubscriptDecl* decl);
6262
SwiftMangledName visitVarDecl(const swift::VarDecl* decl);
63-
SwiftMangledName visitAbstractTypeParamDecl(const swift::AbstractTypeParamDecl* decl);
6463
SwiftMangledName visitGenericTypeParamDecl(const swift::GenericTypeParamDecl* decl);
6564

6665
// default fallback for non mangled types. This covers types that should not appear in normal

0 commit comments

Comments
 (0)