@@ -65,17 +65,16 @@ SwiftMangledName SwiftMangler::visitValueDecl(const swift::ValueDecl* decl, bool
6565 auto ret = initMangled (decl);
6666 std::string name;
6767 llvm::raw_string_ostream oss{name};
68- oss << decl->getName ();
68+ decl->getName (). print (oss );
6969 ret << name;
7070 if (decl->isStatic ()) {
7171 ret << " |static" ;
7272 }
7373 return ret;
7474}
7575
76- SwiftMangledName SwiftMangler::visitTypeDiscriminatedValueDecl (const swift::ValueDecl* decl,
77- bool force) {
78- if (auto ret = visitValueDecl (decl, force)) {
76+ SwiftMangledName SwiftMangler::visitTypeDiscriminatedValueDecl (const swift::ValueDecl* decl) {
77+ if (auto ret = visitValueDecl (decl)) {
7978 ret << fetch (decl->getInterfaceType ()->getCanonicalType ());
8079 return ret;
8180 }
@@ -86,13 +85,6 @@ SwiftMangledName SwiftMangler::visitAbstractFunctionDecl(const swift::AbstractFu
8685 return visitTypeDiscriminatedValueDecl (decl);
8786}
8887
89- SwiftMangledName SwiftMangler::visitAccessorDecl (const swift::AccessorDecl* decl) {
90- std::string name;
91- llvm::raw_string_ostream oss{name};
92- decl->printUserFacingName (oss);
93- return visitTypeDiscriminatedValueDecl (decl, /* force=*/ true ) << ' _' << name;
94- }
95-
9688SwiftMangledName SwiftMangler::visitSubscriptDecl (const swift::SubscriptDecl* decl) {
9789 return visitTypeDiscriminatedValueDecl (decl);
9890}
@@ -101,10 +93,6 @@ SwiftMangledName SwiftMangler::visitVarDecl(const swift::VarDecl* decl) {
10193 return visitTypeDiscriminatedValueDecl (decl);
10294}
10395
104- SwiftMangledName SwiftMangler::visitParamDecl (const swift::ParamDecl* decl) {
105- return visitTypeDiscriminatedValueDecl (decl, /* force=*/ true );
106- }
107-
10896SwiftMangledName SwiftMangler::visitExtensionDecl (const swift::ExtensionDecl* decl) {
10997 if (decl->getDeclContext ()->isLocalContext ()) {
11098 return {};
0 commit comments