Skip to content

Commit 2848946

Browse files
committed
unittests: provide additional metadata stubs
Provide additional stubs for known metadata. These are used in the unit tests which do not link against the standard library and thus do not have the known metadata. Augment the existing metadata stubs with the new decorated names and entries.
1 parent dd12206 commit 2848946

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

unittests/runtime/Stdlib.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ void *$ss32_getErrorEmbeddedNSErrorIndirectyyXlSgSPyxGs0B0RzlF(void *) {
180180
SWIFT_RUNTIME_STDLIB_INTERNAL
181181
const long long $SkMp[1] = {0};
182182

183+
SWIFT_RUNTIME_STDLIB_INTERNAL
184+
const long long $sSHMp[1] = {0};
185+
183186
// Array
184187

185188
SWIFT_RUNTIME_STDLIB_INTERNAL
@@ -190,11 +193,17 @@ const long long $sSaMn[1] = {0};
190193
SWIFT_RUNTIME_STDLIB_INTERNAL
191194
const long long $ssSdVMn[1] = {0};
192195

196+
SWIFT_RUNTIME_STDLIB_INTERNAL
197+
const long long $sSDMn[1] = {0};
198+
193199
// Set
194200

195201
SWIFT_RUNTIME_STDLIB_INTERNAL
196202
const long long $ssSeVMn[1] = {0};
197203

204+
SWIFT_RUNTIME_STDLIB_INTERNAL
205+
const long long $sShMn[1] = {0};
206+
198207
// Mirror
199208

200209
// protocol witness table for Swift._ClassSuperMirror : Swift._Mirror in Swift
@@ -271,3 +280,8 @@ MANGLE_SYM(s20_playgroundPrintHookySScSgvg)() {
271280
return {nullptr, nullptr};
272281
}
273282

283+
// ObjectiveC Bridgeable
284+
285+
SWIFT_RUNTIME_STDLIB_INTERNAL
286+
const long long $ss21_ObjectiveCBridgeableMp[1] = {0};
287+

0 commit comments

Comments
 (0)