mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename swift3 section and global names to swift5
Such that old and new runtimes can co-exists rdar://36363251
This commit is contained in:
@@ -118,17 +118,17 @@ findReflectionSection(const ObjectFile *objectFile,
|
||||
|
||||
static ReflectionInfo findReflectionInfo(const ObjectFile *objectFile) {
|
||||
auto fieldSection = findReflectionSection<FieldSection>(
|
||||
objectFile, {"__swift3_fieldmd", ".swift3_fieldmd", "swift3_fieldmd"});
|
||||
objectFile, {"__swift5_fieldmd", ".swift5_fieldmd", "swift5_fieldmd"});
|
||||
auto associatedTypeSection = findReflectionSection<AssociatedTypeSection>(
|
||||
objectFile, {"__swift3_assocty", ".swift3_assocty", "swift3_assocty"});
|
||||
objectFile, {"__swift5_assocty", ".swift5_assocty", "swift5_assocty"});
|
||||
auto builtinTypeSection = findReflectionSection<BuiltinTypeSection>(
|
||||
objectFile, {"__swift3_builtin", ".swift3_builtin", "swift3_builtin"});
|
||||
objectFile, {"__swift5_builtin", ".swift5_builtin", "swift5_builtin"});
|
||||
auto captureSection = findReflectionSection<CaptureSection>(
|
||||
objectFile, {"__swift3_capture", ".swift3_capture", "swift3_capture"});
|
||||
objectFile, {"__swift5_capture", ".swift5_capture", "swift5_capture"});
|
||||
auto typeRefSection = findReflectionSection<GenericSection>(
|
||||
objectFile, {"__swift3_typeref", ".swift3_typeref", "swift3_typeref"});
|
||||
objectFile, {"__swift5_typeref", ".swift5_typeref", "swift5_typeref"});
|
||||
auto reflectionStringsSection = findReflectionSection<GenericSection>(
|
||||
objectFile, {"__swift3_reflstr", ".swift3_reflstr", "swift3_reflstr"});
|
||||
objectFile, {"__swift5_reflstr", ".swift5_reflstr", "swift5_reflstr"});
|
||||
|
||||
return {
|
||||
{fieldSection.first, fieldSection.second},
|
||||
|
||||
Reference in New Issue
Block a user