Skip to content

Commit 4ab3535

Browse files
committed
ASTMangler: Rename mangleTypeAsUSR() to mangleTypeWithoutPrefix()
1 parent aaf4b88 commit 4ab3535

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

include/swift/AST/ASTMangler.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ class ASTMangler : public Mangler {
164164

165165
std::string mangleObjCRuntimeName(const NominalTypeDecl *Nominal);
166166

167-
std::string mangleTypeAsUSR(Type type) {
168-
return mangleTypeWithoutPrefix(type);
167+
std::string mangleTypeWithoutPrefix(Type type) {
168+
appendType(type);
169+
return finalize();
169170
}
170171

171172
std::string mangleTypeAsContextUSR(const NominalTypeDecl *type);
@@ -319,11 +320,6 @@ class ASTMangler : public Mangler {
319320
void appendOpParamForLayoutConstraint(LayoutConstraint Layout);
320321

321322
void appendSymbolicReference(SymbolicReferent referent);
322-
323-
std::string mangleTypeWithoutPrefix(Type type) {
324-
appendType(type);
325-
return finalize();
326-
}
327323
};
328324

329325
} // end namespace Mangle

lib/SIL/SILDefaultWitnessTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ convertToDefinition(ArrayRef<Entry> entries) {
9797

9898
std::string SILDefaultWitnessTable::getUniqueName() const {
9999
Mangle::ASTMangler Mangler;
100-
return Mangler.mangleTypeAsUSR(getProtocol()->getDeclaredType());
100+
return Mangler.mangleTypeWithoutPrefix(getProtocol()->getDeclaredType());
101101
}
102102

103103
SILDefaultWitnessTable::~SILDefaultWitnessTable() {

0 commit comments

Comments
 (0)