mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Swift: Remove AbstractTypeParamDecl mangling.
AbstractTypeParamDecl itself was removed in 36b3f0ee12.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user