Skip to content

Commit

Permalink
Mark as API; use expanded-from-template return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
millenomi committed Jun 8, 2018
1 parent 02bf6fd commit 4c857c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions include/swift/Runtime/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -4379,9 +4379,8 @@ void verifyMangledNameRoundtrip(const Metadata *metadata);

#if !SWIFT_OBJC_INTEROP

SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_SPI // SPI for swift-corelibs-foundation
ConstTargetMetadataPointer<swift::InProcess, TargetTypeContextDescriptor>
_swift_getTypeContextDescriptor(const Metadata *type);
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
const TypeContextDescriptor *swift_getTypeContextDescriptor(const Metadata *type);

#endif // !SWIFT_OBJC_INTEROP

Expand Down
4 changes: 1 addition & 3 deletions stdlib/public/runtime/Metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3943,9 +3943,7 @@ void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {

#if !SWIFT_OBJC_INTEROP

// SPI for swift-corelibs-foundation
ConstTargetMetadataPointer<swift::InProcess, TargetTypeContextDescriptor>
swift::_swift_getTypeContextDescriptor(const Metadata *type) {
const TypeContextDescriptor *swift::swift_getTypeContextDescriptor(const Metadata *type) {
return type->getTypeContextDescriptor();
}

Expand Down

0 comments on commit 4c857c5

Please sign in to comment.