Skip to content

Commit 0ea22f8

Browse files
committed
[rbi] Remove support for sending result for impl-function-type in the old mangler.
1 parent e4887c7 commit 0ea22f8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docs/ABI/Mangling.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,9 @@ mangled in to disambiguate.
873873
#if SWIFT_RUNTIME_VERSION >= 5.5
874874
SENDABLE ::= 'h' // @Sendable
875875
ASYNC ::= 'H' // @async
876+
#endif
877+
878+
#if SWIFT_RUNTIME_VERSION >= 6.0
876879
SENDING-RESULT ::= 'T' // sending result
877880
#endif
878881

lib/Demangling/OldDemangler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,9 +2252,6 @@ class OldDemangler {
22522252
if (Mangled.nextIf('H'))
22532253
addImplFunctionAttribute(type, "@async");
22542254

2255-
if (Mangled.nextIf('T'))
2256-
addImplFunctionAttribute(type, "sending-result");
2257-
22582255
// Enter a new generic context if this type is generic.
22592256
// FIXME: replace with std::optional, when we have it.
22602257
bool isPseudogeneric = false;

lib/Demangling/Remangler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,6 @@ ManglingError Remangler::mangleImplFunctionType(Node *node, unsigned depth) {
21222122
char FuncAttr = llvm::StringSwitch<char>(Child->getText())
21232123
.Case("@Sendable", 'h')
21242124
.Case("@async", 'H')
2125-
.Case("sending-result", 'T')
21262125
.Default(0);
21272126
if (!FuncAttr) {
21282127
return MANGLING_ERROR(ManglingError::InvalidImplFunctionAttribute,

0 commit comments

Comments
 (0)