[Runtime] Rename __swift_lite section to __swift_hooks.

rdar://problem/36997475
This commit is contained in:
Mike Ash
2018-03-29 12:16:01 -04:00
parent 3019265ffd
commit f8241caa59
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,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
/// __swift_lite section and uses the hooks defined therein. This struct
/// __swift_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
@@ -52,7 +52,7 @@ static OverrideSection *getOverrideSectionPtr() {
swift_once(&Predicate, [](void *) {
size_t Size;
OverrideSectionPtr = static_cast<OverrideSection *>(lookupSection("__DATA",
"__swift_lite",
"__swift_hooks",
&Size));
if (Size < sizeof(OverrideSection))
OverrideSectionPtr = nullptr;