Skip to content

Commit 158427b

Browse files
authored
Merge pull request #34840 from Azoy/swift-5-4-hacks
Bump backward compatibility to 5.4
2 parents 37f8f20 + a6f69ae commit 158427b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/runtime/CompatibilityOverride.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace swift;
2929
/// The definition of the contents of the override section.
3030
///
3131
/// The runtime looks in the main executable (not any libraries!) for a
32-
/// __swift53_hooks section and uses the hooks defined therein. This struct
32+
/// __swift54_hooks section and uses the hooks defined therein. This struct
3333
/// defines the layout of that section. These hooks allow extending
3434
/// runtime functionality when running apps built with a more recent
3535
/// compiler. If additional hooks are needed, they may be added at the
@@ -54,7 +54,7 @@ static OverrideSection *getOverrideSectionPtr() {
5454
swift_once(&Predicate, [](void *) {
5555
size_t Size;
5656
OverrideSectionPtr = static_cast<OverrideSection *>(
57-
lookupSection("__DATA", "__swift53_hooks", &Size));
57+
lookupSection("__DATA", "__swift54_hooks", &Size));
5858
if (Size < sizeof(OverrideSection))
5959
OverrideSectionPtr = nullptr;
6060
}, nullptr);

unittests/runtime/CompatibilityOverride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct OverrideSection {
6060
#include "../../stdlib/public/runtime/CompatibilityOverride.def"
6161
};
6262

63-
OverrideSection Overrides __attribute__((section("__DATA,__swift53_hooks"))) = {
63+
OverrideSection Overrides __attribute__((section("__DATA,__swift54_hooks"))) = {
6464
0,
6565
#define OVERRIDE(name, ret, attrs, ccAttrs, namespace, typedArgs, namedArgs) \
6666
name ## Override,

0 commit comments

Comments
 (0)