Skip to content

Commit d35dcc8

Browse files
authored
Add swift5_tests to MetadataSections. (#71509)
1 parent 6987c70 commit d35dcc8

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

Diff for: stdlib/public/SwiftShims/swift/shims/MetadataSections.h

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ struct MetadataSections {
9999
MetadataSectionRange swift5_accessible_functions;
100100
MetadataSectionRange swift5_accessible_protocol_requirement_functions;
101101
MetadataSectionRange swift5_runtime_attributes;
102+
MetadataSectionRange swift5_tests;
102103
};
103104

104105
#ifdef __cplusplus

Diff for: stdlib/public/runtime/ImageInspectionCommon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
namespace swift {
5454
struct MetadataSections;
55-
static constexpr const uintptr_t CurrentSectionMetadataVersion = 3;
55+
static constexpr const uintptr_t CurrentSectionMetadataVersion = 4;
5656
}
5757

5858
struct SectionInfo {

Diff for: stdlib/public/runtime/SwiftRT-COFF.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ DECLARE_SWIFT_SECTION(sw5cptr)
5555
DECLARE_SWIFT_SECTION(sw5mpen)
5656
DECLARE_SWIFT_SECTION(sw5acfn)
5757
DECLARE_SWIFT_SECTION(sw5ratt)
58+
DECLARE_SWIFT_SECTION(sw5test)
5859
}
5960

6061
namespace {
@@ -88,6 +89,7 @@ static void swift_image_constructor() {
8889
SWIFT_SECTION_RANGE(sw5mpen),
8990
SWIFT_SECTION_RANGE(sw5acfn),
9091
SWIFT_SECTION_RANGE(sw5ratt),
92+
SWIFT_SECTION_RANGE(sw5test),
9193
};
9294

9395
#undef SWIFT_SECTION_RANGE

Diff for: stdlib/public/runtime/SwiftRT-ELF-WASM.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ DECLARE_SWIFT_SECTION(swift5_mpenum)
6363
DECLARE_SWIFT_SECTION(swift5_accessible_functions)
6464
DECLARE_SWIFT_SECTION(swift5_accessible_protocol_requirement_functions)
6565
DECLARE_SWIFT_SECTION(swift5_runtime_attributes)
66+
DECLARE_SWIFT_SECTION(swift5_tests)
6667
}
6768

6869
#undef DECLARE_SWIFT_SECTION
@@ -100,6 +101,7 @@ static void swift_image_constructor() {
100101
SWIFT_SECTION_RANGE(swift5_accessible_functions),
101102
SWIFT_SECTION_RANGE(swift5_accessible_protocol_requirement_functions),
102103
SWIFT_SECTION_RANGE(swift5_runtime_attributes),
104+
SWIFT_SECTION_RANGE(swift5_tests),
103105
};
104106

105107
#undef SWIFT_SECTION_RANGE

0 commit comments

Comments
 (0)