File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -757,6 +757,8 @@ NodePointer Demangler::demangleSymbol(StringRef MangledName,
757
757
758
758
NodePointer topLevel = createNode (Node::Kind::Global);
759
759
760
+ NodePointer suffix = popNode (Node::Kind::Suffix);
761
+
760
762
NodePointer Parent = topLevel;
761
763
while (NodePointer FuncAttr = popNode (isFunctionAttr)) {
762
764
Parent->addChild (FuncAttr, *this );
@@ -774,6 +776,9 @@ NodePointer Demangler::demangleSymbol(StringRef MangledName,
774
776
break ;
775
777
}
776
778
}
779
+ if (suffix)
780
+ topLevel->addChild (suffix, *this );
781
+
777
782
if (topLevel->getNumChildren () == 0 )
778
783
return nullptr ;
779
784
Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ _$SSC3fooyS2d_SdtFTO ---> {T:_$SSC3fooyS2d_SdtF} @nonobjc __C_Synthesized.foo(Sw
97
97
_$S3foo3barC3bas3zimyAaEC_tFTo ---> {T:_$S3foo3barC3bas3zimyAaEC_tF,C} @objc foo.bar.bas(zim: foo.zim) -> ()
98
98
_$SSC3fooyS2d_SdtFTO ---> {T:_$SSC3fooyS2d_SdtF} @nonobjc __C_Synthesized.foo(Swift.Double, Swift.Double) -> Swift.Double
99
99
_$sTA.123 ---> {T:} partial apply forwarder with unmangled suffix ".123"
100
- $s4main3fooyySiFyyXEfU_TA.1 ---> {T:} closure #1 () -> () in main.foo(Swift.Int) -> ()partial apply forwarder with unmangled suffix ".1"
100
+ $s4main3fooyySiFyyXEfU_TA.1 ---> {T:} partial apply forwarder for closure #1 () -> () in main.foo(Swift.Int) -> () with unmangled suffix ".1"
101
+ $s4main8MyStructV3fooyyFAA1XV_Tg5.foo ---> generic specialization <main.X> of main.MyStruct.foo() -> () with unmangled suffix ".foo"
101
102
_TTDFC3foo3bar3basfT3zimCS_3zim_T_ ---> dynamic foo.bar.bas(zim: foo.zim) -> ()
102
103
_TFC3foo3bar3basfT3zimCS_3zim_T_ ---> foo.bar.bas(zim: foo.zim) -> ()
103
104
_TF3foooi1pFTCS_3barVS_3bas_OS_3zim ---> foo.+ infix(foo.bar, foo.bas) -> foo.zim
You can’t perform that action at this time.
0 commit comments