|
17 | 17 | #ifndef SWIFT_ABI_EXECUTOR_H
|
18 | 18 | #define SWIFT_ABI_EXECUTOR_H
|
19 | 19 |
|
20 |
| -#include "../../../stdlib/public/Concurrency/Error.h" |
21 |
| - |
22 | 20 | #include "swift/ABI/Actor.h"
|
23 | 21 | #include "swift/ABI/HeapObject.h"
|
24 | 22 | #include "swift/Runtime/Casting.h"
|
@@ -427,27 +425,10 @@ enum class IsIsolatingCurrentContextDecision : int8_t {
|
427 | 425 | Isolated,
|
428 | 426 | };
|
429 | 427 |
|
430 |
| -inline IsIsolatingCurrentContextDecision |
431 |
| -getIsIsolatingCurrentContextDecisionFromInt(int8_t value) { |
432 |
| - switch (value) { |
433 |
| - case -1: return IsIsolatingCurrentContextDecision::Unknown; |
434 |
| - case 0: return IsIsolatingCurrentContextDecision::NotIsolated; |
435 |
| - case 1: return IsIsolatingCurrentContextDecision::Isolated; |
436 |
| - default: |
437 |
| - swift_Concurrency_fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value"); |
438 |
| - return IsIsolatingCurrentContextDecision::Unknown; // silence warning about missing return |
439 |
| - } |
440 |
| -} |
| 428 | +IsIsolatingCurrentContextDecision |
| 429 | +getIsIsolatingCurrentContextDecisionFromInt(int8_t value); |
441 | 430 |
|
442 |
| -inline StringRef getIsIsolatingCurrentContextDecisionNameStr(IsIsolatingCurrentContextDecision decision) { |
443 |
| - switch (decision) { |
444 |
| - case IsIsolatingCurrentContextDecision::Unknown: return "Unknown"; |
445 |
| - case IsIsolatingCurrentContextDecision::NotIsolated: return "NotIsolated"; |
446 |
| - case IsIsolatingCurrentContextDecision::Isolated: return "Isolated"; |
447 |
| - } |
448 |
| - swift_Concurrency_fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value"); |
449 |
| - return "<Unexpected Value>"; // silence warning about missing return |
450 |
| -} |
| 431 | +StringRef getIsIsolatingCurrentContextDecisionNameStr(IsIsolatingCurrentContextDecision decision); |
451 | 432 |
|
452 | 433 | }
|
453 | 434 |
|
|
0 commit comments