Skip to content

Commit

Permalink
Merge pull request #16964 from millenomi/bundle-for-class
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci authored Jun 12, 2018
2 parents d275e7d + 4c857c5 commit f65000a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/swift/Runtime/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -4377,6 +4377,13 @@ void swift_getFieldAt(
void verifyMangledNameRoundtrip(const Metadata *metadata);
#endif

#if !SWIFT_OBJC_INTEROP

SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
const TypeContextDescriptor *swift_getTypeContextDescriptor(const Metadata *type);

#endif // !SWIFT_OBJC_INTEROP

} // end namespace swift

#pragma clang diagnostic pop
Expand Down
8 changes: 8 additions & 0 deletions stdlib/public/runtime/Metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3940,3 +3940,11 @@ void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {
metadata, mangledName.c_str(), (const Metadata *)result);
}
#endif

#if !SWIFT_OBJC_INTEROP

const TypeContextDescriptor *swift::swift_getTypeContextDescriptor(const Metadata *type) {
return type->getTypeContextDescriptor();
}

#endif // !SWIFT_OBJC_INTEROP

0 comments on commit f65000a

Please sign in to comment.