Rename swift sections from swift4 to swift5

rdar://38465220
This commit is contained in:
Arnold Schwaighofer
2018-05-23 11:38:51 -07:00
parent 66628f6ed6
commit cc7f207cec
16 changed files with 129 additions and 129 deletions

View File

@@ -31,16 +31,16 @@ using namespace swift;
namespace {
/// The Mach-O section name for the section containing protocol descriptor
/// references. This lives within SEG_TEXT.
constexpr const char ProtocolsSection[] = "__swift4_protos";
constexpr const char ProtocolsSection[] = "__swift5_protos";
/// The Mach-O section name for the section containing protocol conformances.
/// This lives within SEG_TEXT.
constexpr const char ProtocolConformancesSection[] = "__swift4_proto";
constexpr const char ProtocolConformancesSection[] = "__swift5_proto";
/// The Mach-O section name for the section containing type references.
/// This lives within SEG_TEXT.
constexpr const char TypeMetadataRecordSection[] = "__swift4_types";
constexpr const char TypeMetadataRecordSection[] = "__swift5_types";
/// The Mach-O section name for the section containing type field references.
/// This lives within SEG_TEXT.
constexpr const char TypeFieldRecordSection[] = "__swift4_fieldmd";
constexpr const char TypeFieldRecordSection[] = "__swift5_fieldmd";
#if __POINTER_WIDTH__ == 64
using mach_header_platform = mach_header_64;
@@ -57,7 +57,7 @@ void addImageCallback(const mach_header *mh, intptr_t vmaddr_slide) {
assert(mh->magic == MH_MAGIC_64 && "loaded non-64-bit image?!");
#endif
// Look for a __swift4_proto section.
// Look for a __swift5_proto section.
unsigned long size;
const uint8_t *section =
getsectiondata(reinterpret_cast<const mach_header_platform *>(mh),