Skip to content

Add swift5_tests to MetadataSections. #71509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/public/SwiftShims/swift/shims/MetadataSections.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ struct MetadataSections {
MetadataSectionRange swift5_mpenum;
MetadataSectionRange swift5_accessible_functions;
MetadataSectionRange swift5_runtime_attributes;
MetadataSectionRange swift5_tests;
};

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/runtime/ImageInspectionCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

namespace swift {
struct MetadataSections;
static constexpr const uintptr_t CurrentSectionMetadataVersion = 3;
static constexpr const uintptr_t CurrentSectionMetadataVersion = 4;
}

struct SectionInfo {
Expand Down
2 changes: 2 additions & 0 deletions stdlib/public/runtime/SwiftRT-COFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ DECLARE_SWIFT_SECTION(sw5cptr)
DECLARE_SWIFT_SECTION(sw5mpen)
DECLARE_SWIFT_SECTION(sw5acfn)
DECLARE_SWIFT_SECTION(sw5ratt)
DECLARE_SWIFT_SECTION(sw5test)
}

namespace {
Expand Down Expand Up @@ -88,6 +89,7 @@ static void swift_image_constructor() {
SWIFT_SECTION_RANGE(sw5mpen),
SWIFT_SECTION_RANGE(sw5acfn),
SWIFT_SECTION_RANGE(sw5ratt),
SWIFT_SECTION_RANGE(sw5test),
};

#undef SWIFT_SECTION_RANGE
Expand Down
2 changes: 2 additions & 0 deletions stdlib/public/runtime/SwiftRT-ELF-WASM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ DECLARE_SWIFT_SECTION(swift5_capture)
DECLARE_SWIFT_SECTION(swift5_mpenum)
DECLARE_SWIFT_SECTION(swift5_accessible_functions)
DECLARE_SWIFT_SECTION(swift5_runtime_attributes)
DECLARE_SWIFT_SECTION(swift5_tests)
}

#undef DECLARE_SWIFT_SECTION
Expand Down Expand Up @@ -98,6 +99,7 @@ static void swift_image_constructor() {
SWIFT_SECTION_RANGE(swift5_mpenum),
SWIFT_SECTION_RANGE(swift5_accessible_functions),
SWIFT_SECTION_RANGE(swift5_runtime_attributes),
SWIFT_SECTION_RANGE(swift5_tests),
};

#undef SWIFT_SECTION_RANGE
Expand Down