mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[rbi] Remove support for sending result for impl-function-type in the old mangler.
This commit is contained in:
@@ -873,6 +873,9 @@ mangled in to disambiguate.
|
||||
#if SWIFT_RUNTIME_VERSION >= 5.5
|
||||
SENDABLE ::= 'h' // @Sendable
|
||||
ASYNC ::= 'H' // @async
|
||||
#endif
|
||||
|
||||
#if SWIFT_RUNTIME_VERSION >= 6.0
|
||||
SENDING-RESULT ::= 'T' // sending result
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2252,9 +2252,6 @@ private:
|
||||
if (Mangled.nextIf('H'))
|
||||
addImplFunctionAttribute(type, "@async");
|
||||
|
||||
if (Mangled.nextIf('T'))
|
||||
addImplFunctionAttribute(type, "sending-result");
|
||||
|
||||
// Enter a new generic context if this type is generic.
|
||||
// FIXME: replace with std::optional, when we have it.
|
||||
bool isPseudogeneric = false;
|
||||
|
||||
@@ -2122,7 +2122,6 @@ ManglingError Remangler::mangleImplFunctionType(Node *node, unsigned depth) {
|
||||
char FuncAttr = llvm::StringSwitch<char>(Child->getText())
|
||||
.Case("@Sendable", 'h')
|
||||
.Case("@async", 'H')
|
||||
.Case("sending-result", 'T')
|
||||
.Default(0);
|
||||
if (!FuncAttr) {
|
||||
return MANGLING_ERROR(ManglingError::InvalidImplFunctionAttribute,
|
||||
|
||||
Reference in New Issue
Block a user