File tree Expand file tree Collapse file tree 5 files changed +8
-18
lines changed
stdlib/toolchain/Compatibility56 Expand file tree Collapse file tree 5 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ void swift_dumpTrackedAccesses();
75
75
#ifdef SWIFT_COMPATIBILITY56
76
76
// / Backdeploy56 shim calls swift_task_enterThreadLocalContext if it is
77
77
// / available in the underlying runtime, otherwise does nothing
78
- SWIFT_RUNTIME_EXPORT
78
+ __attribute__ ((visibility( " hidden " ), weak))
79
79
void swift_task_enterThreadLocalContextBackdeploy56(char *state);
80
80
81
81
// / Backdeploy56 shim calls swift_task_exitThreadLocalContext if it is available
82
82
// / in the underlying runtime, otherwise does nothing
83
- SWIFT_RUNTIME_EXPORT
83
+ __attribute__ ((visibility( " hidden " ), weak))
84
84
void swift_task_exitThreadLocalContextBackdeploy56(char *state);
85
85
#else
86
86
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ using TaskFutureWaitThrowing_t = SWIFT_CC(swiftasync) void(
37
37
ThrowingTaskFutureWaitContinuationFunction *resumeFn,
38
38
AsyncContext *callContext);
39
39
40
+ __attribute__ ((weak, visibility(" hidden" )))
40
41
void SWIFT_CC (swiftasync) swift56override_swift_task_future_wait(
41
42
OpaqueValue *,
42
43
SWIFT_ASYNC_CONTEXT AsyncContext *,
@@ -45,17 +46,12 @@ void SWIFT_CC(swiftasync) swift56override_swift_task_future_wait(
45
46
AsyncContext *,
46
47
TaskFutureWait_t *original);
47
48
49
+ __attribute__ ((weak, visibility(" hidden" )))
48
50
void SWIFT_CC (swiftasync) swift56override_swift_task_future_wait_throwing(
49
51
OpaqueValue *,
50
52
SWIFT_ASYNC_CONTEXT AsyncContext *,
51
53
AsyncTask *,
52
54
ThrowingTaskFutureWaitContinuationFunction *,
53
55
AsyncContext *,
54
56
TaskFutureWaitThrowing_t *original);
55
-
56
-
57
- using AsyncMainDrainQueue_t = SWIFT_CC(swift) void ();
58
-
59
- void SWIFT_CC (swift) swift56override_swift_asyncMainDrainQueue(AsyncMainDrainQueue_t *);
60
-
61
57
} // namespace swift
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class CancellationNotificationStatusRecord : public TaskStatusRecord {
159
159
};
160
160
161
161
// / Return the current thread's active task reference.
162
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
162
+ SWIFT_CC (swift)
163
163
AsyncTask *swift_task_getCurrent(void );
164
164
} // namespace swift
165
165
Original file line number Diff line number Diff line change @@ -81,14 +81,9 @@ using FutureAsyncSignature =
81
81
// /
82
82
// / This has no effect if the task already has at least the given priority.
83
83
// / Returns the priority of the task.
84
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
85
- JobPriority
86
- swift_task_escalateBackdeploy56 (AsyncTask *task, JobPriority newPriority);
87
-
88
- // / Return the current thread's active task reference.
89
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
90
- AsyncTask *swift_task_getCurrent (void );
91
-
84
+ SWIFT_CC (swift)
85
+ JobPriority swift_task_escalateBackdeploy56 (AsyncTask *task,
86
+ JobPriority newPriority);
92
87
} // namespace swift
93
88
94
89
#pragma clang diagnostic pop
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ typedef std::once_flag swift_once_t;
46
46
// / Runs the given function with the given context argument exactly once.
47
47
// / The predicate argument must point to a global or static variable of static
48
48
// / extent of type swift_once_t.
49
- SWIFT_RUNTIME_EXPORT
50
49
void swift_once (swift_once_t *predicate, void (*fn)(void *), void *context);
51
50
52
51
}
You can’t perform that action at this time.
0 commit comments