Skip to content

Commit ff2cc35

Browse files
committed
ASTMangler: Tiny cleanup
1 parent ff99d65 commit ff2cc35

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

include/swift/AST/ASTMangler.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ class ASTMangler : public Mangler {
101101
SymbolKind SKind = SymbolKind::Default);
102102

103103
std::string mangleDestructorEntity(const DestructorDecl *decl,
104-
bool isDeallocating, SymbolKind SKind);
104+
bool isDeallocating,
105+
SymbolKind SKind = SymbolKind::Default);
105106

106107
std::string mangleConstructorEntity(const ConstructorDecl *ctor,
107108
bool isAllocating,
@@ -120,11 +121,11 @@ class ASTMangler : public Mangler {
120121

121122
std::string mangleDefaultArgumentEntity(const DeclContext *func,
122123
unsigned index,
123-
SymbolKind SKind);
124+
SymbolKind SKind = SymbolKind::Default);
124125

125126
std::string mangleInitializerEntity(const VarDecl *var, SymbolKind SKind);
126127
std::string mangleBackingInitializerEntity(const VarDecl *var,
127-
SymbolKind SKind);
128+
SymbolKind SKind = SymbolKind::Default);
128129

129130
std::string mangleNominalType(const NominalTypeDecl *decl);
130131

lib/AST/ASTMangler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ void ASTMangler::appendConstructorEntity(const ConstructorDecl *ctor,
27412741
}
27422742

27432743
void ASTMangler::appendDestructorEntity(const DestructorDecl *dtor,
2744-
bool isDeallocating) {
2744+
bool isDeallocating) {
27452745
appendContextOf(dtor);
27462746
appendOperator(isDeallocating ? "fD" : "fd");
27472747
}

0 commit comments

Comments
 (0)