Bump backward compatibility to 5.4

This commit is contained in:
Azoy
2020-11-19 20:01:35 -05:00
parent e066d4351b
commit a6f69aeb2e
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ using namespace swift;
/// The definition of the contents of the override section.
///
/// The runtime looks in the main executable (not any libraries!) for a
/// __swift53_hooks section and uses the hooks defined therein. This struct
/// __swift54_hooks section and uses the hooks defined therein. This struct
/// defines the layout of that section. These hooks allow extending
/// runtime functionality when running apps built with a more recent
/// compiler. If additional hooks are needed, they may be added at the
@@ -54,7 +54,7 @@ static OverrideSection *getOverrideSectionPtr() {
swift_once(&Predicate, [](void *) {
size_t Size;
OverrideSectionPtr = static_cast<OverrideSection *>(
lookupSection("__DATA", "__swift53_hooks", &Size));
lookupSection("__DATA", "__swift54_hooks", &Size));
if (Size < sizeof(OverrideSection))
OverrideSectionPtr = nullptr;
}, nullptr);