mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename swift sections from swift4 to swift5
rdar://38465220
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user