Rename swift3 section and global names to swift5

Such that old and new runtimes can co-exists
rdar://36363251
This commit is contained in:
Arnold Schwaighofer
2018-01-22 09:12:15 -08:00
parent c7e1c5eefe
commit 17cd95efa4
11 changed files with 90 additions and 90 deletions

View File

@@ -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},