mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Runtime] Rename __swift_lite section to __swift_hooks.
rdar://problem/36997475
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user