Skip to content

Commit 77ed014

Browse files
committed
Remove unused ASTMangler::mangleGlobalGetterEntity
1 parent 6d78955 commit 77ed014

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

include/swift/AST/ASTMangler.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ class ASTMangler : public Mangler {
217217
bool isStatic,
218218
SymbolKind SKind);
219219

220-
std::string mangleGlobalGetterEntity(const ValueDecl *decl,
221-
SymbolKind SKind = SymbolKind::Default);
222-
223220
std::string mangleDefaultArgumentEntity(const DeclContext *func,
224221
unsigned index,
225222
SymbolKind SKind = SymbolKind::Default);

lib/AST/ASTMangler.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,6 @@ std::string ASTMangler::mangleAccessorEntity(AccessorKind kind,
171171
return finalize();
172172
}
173173

174-
std::string ASTMangler::mangleGlobalGetterEntity(const ValueDecl *decl,
175-
SymbolKind SKind) {
176-
assert(isa<VarDecl>(decl) && "Only variables can have global getters");
177-
llvm::SaveAndRestore X(AllowInverses, inversesAllowed(decl));
178-
beginMangling();
179-
BaseEntitySignature base(decl);
180-
appendEntity(decl, base, "vG", /*isStatic*/false);
181-
appendSymbolKind(SKind);
182-
return finalize();
183-
}
184-
185174
std::string ASTMangler::mangleDefaultArgumentEntity(const DeclContext *func,
186175
unsigned index,
187176
SymbolKind SKind) {

0 commit comments

Comments
 (0)