Skip to content

Commit f65000a

Browse files
authored
Merge pull request #16964 from millenomi/bundle-for-class
2 parents d275e7d + 4c857c5 commit f65000a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,6 +4377,13 @@ void swift_getFieldAt(
43774377
void verifyMangledNameRoundtrip(const Metadata *metadata);
43784378
#endif
43794379

4380+
#if !SWIFT_OBJC_INTEROP
4381+
4382+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
4383+
const TypeContextDescriptor *swift_getTypeContextDescriptor(const Metadata *type);
4384+
4385+
#endif // !SWIFT_OBJC_INTEROP
4386+
43804387
} // end namespace swift
43814388

43824389
#pragma clang diagnostic pop

stdlib/public/runtime/Metadata.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,3 +3940,11 @@ void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {
39403940
metadata, mangledName.c_str(), (const Metadata *)result);
39413941
}
39423942
#endif
3943+
3944+
#if !SWIFT_OBJC_INTEROP
3945+
3946+
const TypeContextDescriptor *swift::swift_getTypeContextDescriptor(const Metadata *type) {
3947+
return type->getTypeContextDescriptor();
3948+
}
3949+
3950+
#endif // !SWIFT_OBJC_INTEROP

0 commit comments

Comments
 (0)