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

@@ -148,14 +148,14 @@ public:
// The docs say "not all sections may be present." We'll succeed if ANY of
// them are present. Not sure if that's the right thing to do.
auto FieldMd = findSection<FieldSection>(Header, "__swift4_fieldmd");
auto FieldMd = findSection<FieldSection>(Header, "__swift5_fieldmd");
auto AssocTyMd =
findSection<AssociatedTypeSection>(Header, "__swift4_assocty");
findSection<AssociatedTypeSection>(Header, "__swift5_assocty");
auto BuiltinTyMd =
findSection<BuiltinTypeSection>(Header, "__swift4_builtin");
auto CaptureMd = findSection<CaptureSection>(Header, "__swift4_capture");
auto TyperefMd = findSection<GenericSection>(Header, "__swift4_typeref");
auto ReflStrMd = findSection<GenericSection>(Header, "__swift4_reflstr");
findSection<BuiltinTypeSection>(Header, "__swift5_builtin");
auto CaptureMd = findSection<CaptureSection>(Header, "__swift5_capture");
auto TyperefMd = findSection<GenericSection>(Header, "__swift5_typeref");
auto ReflStrMd = findSection<GenericSection>(Header, "__swift5_reflstr");
bool success = FieldMd.second || AssocTyMd.second || BuiltinTyMd.second ||
CaptureMd.second || TyperefMd.second || ReflStrMd.second;