Skip to content

Commit 17cd95e

Browse files
committed
Rename swift3 section and global names to swift5
Such that old and new runtimes can co-exists rdar://36363251
1 parent c7e1c5e commit 17cd95e

File tree

11 files changed

+94
-94
lines changed

11 files changed

+94
-94
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class ReflectionMetadataBuilder {
263263

264264
// Others, such as capture descriptors, do not have a name.
265265
} else {
266-
var = B.finishAndCreateGlobal("\x01l__swift3_reflection_descriptor",
266+
var = B.finishAndCreateGlobal("\x01l__swift5_reflection_descriptor",
267267
Alignment(4), /*isConstant*/ true,
268268
llvm::GlobalValue::PrivateLinkage);
269269
}
@@ -780,15 +780,15 @@ static std::string getReflectionSectionName(IRGenModule &IGM,
780780
case llvm::Triple::COFF:
781781
assert(FourCC.size() <= 4 &&
782782
"COFF section name length must be <= 8 characters");
783-
OS << ".sw3" << FourCC << "$B";
783+
OS << ".sw5" << FourCC << "$B";
784784
break;
785785
case llvm::Triple::ELF:
786-
OS << "swift3_" << LongName;
786+
OS << "swift5_" << LongName;
787787
break;
788788
case llvm::Triple::MachO:
789789
assert(LongName.size() <= 7 &&
790790
"Mach-O section name length must be <= 16 characters");
791-
OS << "__TEXT,__swift3_" << LongName << ", regular, no_dead_strip";
791+
OS << "__TEXT,__swift5_" << LongName << ", regular, no_dead_strip";
792792
break;
793793
case llvm::Triple::Wasm:
794794
llvm_unreachable("web assembly object format is not supported.");

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ internal func getSectionInfo(_ name: String,
106106
///
107107
/// An image of interest must have the following sections in the __DATA
108108
/// segment:
109-
/// - __swift3_fieldmd
110-
/// - __swift3_assocty
111-
/// - __swift3_builtin
112-
/// - __swift3_capture
113-
/// - __swift3_typeref
114-
/// - __swift3_reflstr (optional, may have been stripped out)
109+
/// - __swift5_fieldmd
110+
/// - __swift5_assocty
111+
/// - __swift5_builtin
112+
/// - __swift5_capture
113+
/// - __swift5_typeref
114+
/// - __swift5_reflstr (optional, may have been stripped out)
115115
///
116116
/// - Parameter i: The index of the loaded image as reported by Dyld.
117117
/// - Returns: A `ReflectionInfo` containing the locations of all of the
@@ -122,12 +122,12 @@ internal func getReflectionInfoForImage(atIndex i: UInt32) -> ReflectionInfo? {
122122
to: UnsafePointer<MachHeader>.self)
123123

124124
let imageName = _dyld_get_image_name(i)!
125-
let fieldmd = getSectionInfo("__swift3_fieldmd", header)
126-
let assocty = getSectionInfo("__swift3_assocty", header)
127-
let builtin = getSectionInfo("__swift3_builtin", header)
128-
let capture = getSectionInfo("__swift3_capture", header)
129-
let typeref = getSectionInfo("__swift3_typeref", header)
130-
let reflstr = getSectionInfo("__swift3_reflstr", header)
125+
let fieldmd = getSectionInfo("__swift5_fieldmd", header)
126+
let assocty = getSectionInfo("__swift5_assocty", header)
127+
let builtin = getSectionInfo("__swift5_builtin", header)
128+
let capture = getSectionInfo("__swift5_capture", header)
129+
let typeref = getSectionInfo("__swift5_typeref", header)
130+
let reflstr = getSectionInfo("__swift5_reflstr", header)
131131
return ReflectionInfo(imageName: String(validatingUTF8: imageName)!,
132132
fieldmd: fieldmd,
133133
assocty: assocty,

stdlib/public/runtime/ImageInspectionCOFF.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ struct MetadataSections {
4848
Range swift5_protocols;
4949
Range swift5_protocol_conformances;
5050
Range swift5_type_metadata;
51-
Range swift3_typeref;
52-
Range swift3_reflstr;
53-
Range swift3_fieldmd;
54-
Range swift3_assocty;
51+
Range swift5_typeref;
52+
Range swift5_reflstr;
53+
Range swift5_fieldmd;
54+
Range swift5_assocty;
5555
};
5656
} // namespace swift
5757

stdlib/public/runtime/ImageInspectionELF.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ struct MetadataSections {
4848
Range swift5_protocols;
4949
Range swift5_protocol_conformances;
5050
Range swift5_type_metadata;
51-
Range swift3_typeref;
52-
Range swift3_reflstr;
53-
Range swift3_fieldmd;
54-
Range swift3_assocty;
51+
Range swift5_typeref;
52+
Range swift5_reflstr;
53+
Range swift5_fieldmd;
54+
Range swift5_assocty;
5555
};
5656
} // namespace swift
5757

stdlib/public/runtime/SwiftRT-ELF.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ DECLARE_SWIFT_SECTION(swift5_protocols)
2828
DECLARE_SWIFT_SECTION(swift5_protocol_conformances)
2929
DECLARE_SWIFT_SECTION(swift5_type_metadata)
3030

31-
DECLARE_SWIFT_SECTION(swift3_typeref)
32-
DECLARE_SWIFT_SECTION(swift3_reflstr)
33-
DECLARE_SWIFT_SECTION(swift3_fieldmd)
34-
DECLARE_SWIFT_SECTION(swift3_assocty)
31+
DECLARE_SWIFT_SECTION(swift5_typeref)
32+
DECLARE_SWIFT_SECTION(swift5_reflstr)
33+
DECLARE_SWIFT_SECTION(swift5_fieldmd)
34+
DECLARE_SWIFT_SECTION(swift5_assocty)
3535
}
3636

3737
#undef DECLARE_SWIFT_SECTION
@@ -57,10 +57,10 @@ static void swift_image_constructor() {
5757
SWIFT_SECTION_RANGE(swift5_protocol_conformances),
5858
SWIFT_SECTION_RANGE(swift5_type_metadata),
5959

60-
SWIFT_SECTION_RANGE(swift3_typeref),
61-
SWIFT_SECTION_RANGE(swift3_reflstr),
62-
SWIFT_SECTION_RANGE(swift3_fieldmd),
63-
SWIFT_SECTION_RANGE(swift3_assocty),
60+
SWIFT_SECTION_RANGE(swift5_typeref),
61+
SWIFT_SECTION_RANGE(swift5_reflstr),
62+
SWIFT_SECTION_RANGE(swift5_fieldmd),
63+
SWIFT_SECTION_RANGE(swift5_assocty),
6464
};
6565

6666
#undef SWIFT_SECTION_RANGE

test/IRGen/closure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// -- partial_apply context metadata
66

7-
// CHECK: [[METADATA:@.*]] = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy, i8** null, %swift.type { i64 64 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift3_reflection_descriptor" to i8*) }
7+
// CHECK: [[METADATA:@.*]] = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy, i8** null, %swift.type { i64 64 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor" to i8*) }
88

99
func a(i i: Int) -> (Int) -> Int {
1010
return { x in i }

test/IRGen/reflection_metadata.swift

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,51 @@
22
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -disable-reflection-names -emit-ir %s | %FileCheck %s --check-prefix=STRIP_REFLECTION_NAMES
33
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -disable-reflection-metadata -emit-ir %s | %FileCheck %s --check-prefix=STRIP_REFLECTION_METADATA
44

5-
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift3_reflect
6-
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift3_fieldmd
7-
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift3_assocty
8-
// STRIP_REFLECTION_NAMES-DAG: {{.*}}swift3_capture
9-
// STRIP_REFLECTION_NAMES-DAG: {{.*}}swift3_typeref
10-
// STRIP_REFLECTION_NAMES-NOT: {{.*}}swift3_reflstr
11-
// STRIP_REFLECTION_NAMES-NOT: {{.*}}swift3_builtin
12-
13-
// STRIP_REFLECTION_NAMES-DAG: @"$S19reflection_metadata10MyProtocol_pMF" = internal constant {{.*}}swift3_fieldmd
14-
15-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_reflect
16-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_fieldmd
17-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_assocty
18-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_capture
19-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_typeref
20-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_reflstr
21-
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift3_builtin
5+
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift5_reflect
6+
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift5_fieldmd
7+
// STRIP_REFLECTION_NAMES_DAG: {{.*}}swift5_assocty
8+
// STRIP_REFLECTION_NAMES-DAG: {{.*}}swift5_capture
9+
// STRIP_REFLECTION_NAMES-DAG: {{.*}}swift5_typeref
10+
// STRIP_REFLECTION_NAMES-NOT: {{.*}}swift5_reflstr
11+
// STRIP_REFLECTION_NAMES-NOT: {{.*}}swift5_builtin
12+
13+
// STRIP_REFLECTION_NAMES-DAG: @"$S19reflection_metadata10MyProtocol_pMF" = internal constant {{.*}}swift5_fieldmd
14+
15+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_reflect
16+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_fieldmd
17+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_assocty
18+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_capture
19+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_typeref
20+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_reflstr
21+
// STRIP_REFLECTION_METADATA-NOT: {{.*}}swift5_builtin
2222

2323
// CHECK-DAG: @__swift_reflection_version = linkonce_odr hidden constant i16 {{[0-9]+}}
24-
// CHECK-DAG: private constant [2 x i8] c"i\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
25-
// CHECK-DAG: private constant [3 x i8] c"ms\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
26-
// CHECK-DAG: private constant [3 x i8] c"me\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
27-
// CHECK-DAG: private constant [3 x i8] c"mc\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
28-
// CHECK-DAG: private constant [2 x i8] c"C\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
29-
// CHECK-DAG: private constant [2 x i8] c"S\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
30-
// CHECK-DAG: private constant [2 x i8] c"E\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
31-
// CHECK-DAG: private constant [2 x i8] c"I\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
32-
// CHECK-DAG: private constant [2 x i8] c"t\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
33-
// CHECK-DAG: private constant [4 x i8] c"mgs\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
34-
// CHECK-DAG: private constant [4 x i8] c"mge\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
35-
// CHECK-DAG: private constant [4 x i8] c"mgc\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
36-
// CHECK-DAG: private constant [3 x i8] c"GC\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
37-
// CHECK-DAG: private constant [3 x i8] c"GS\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
38-
// CHECK-DAG: private constant [3 x i8] c"GE\00", section "{{[^"]*}}swift3_reflstr{{[^"]*}}"
39-
40-
// CHECK-DAG: @"\01l__swift3_reflection_descriptor" = private constant { {{.*}} } { i32 1, i32 1, i32 2, {{.*}} }
41-
42-
// CHECK-DAG: @"$S19reflection_metadata10MyProtocol_pMF" = internal constant {{.*}}swift3_fieldmd
43-
// CHECK-DAG: @"$S19reflection_metadata7MyClassCMF" = internal constant {{.*}}swift3_fieldmd
44-
// CHECK-DAG: @"$S19reflection_metadata11ConformanceVAA10MyProtocolAAMA" = internal constant {{.*}}swift3_assocty
45-
// CHECK-DAG: @"$S19reflection_metadata8MyStructVMF" = internal constant {{.*}}swift3_fieldmd
46-
// CHECK-DAG: @"$S19reflection_metadata6MyEnumOMF" = internal constant {{.*}}swift3_fieldmd
47-
// CHECK-DAG: @"$S19reflection_metadata14MyGenericClassCMF" = internal constant {{.*}}swift3_fieldmd
48-
// CHECK-DAG: @"$S19reflection_metadata15MyGenericStructVMF" = internal constant {{.*}}swift3_fieldmd
49-
// CHECK-DAG: @"$S19reflection_metadata13MyGenericEnumOMF" = internal constant {{.*}}swift3_fieldmd
24+
// CHECK-DAG: private constant [2 x i8] c"i\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
25+
// CHECK-DAG: private constant [3 x i8] c"ms\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
26+
// CHECK-DAG: private constant [3 x i8] c"me\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
27+
// CHECK-DAG: private constant [3 x i8] c"mc\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
28+
// CHECK-DAG: private constant [2 x i8] c"C\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
29+
// CHECK-DAG: private constant [2 x i8] c"S\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
30+
// CHECK-DAG: private constant [2 x i8] c"E\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
31+
// CHECK-DAG: private constant [2 x i8] c"I\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
32+
// CHECK-DAG: private constant [2 x i8] c"t\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
33+
// CHECK-DAG: private constant [4 x i8] c"mgs\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
34+
// CHECK-DAG: private constant [4 x i8] c"mge\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
35+
// CHECK-DAG: private constant [4 x i8] c"mgc\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
36+
// CHECK-DAG: private constant [3 x i8] c"GC\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
37+
// CHECK-DAG: private constant [3 x i8] c"GS\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
38+
// CHECK-DAG: private constant [3 x i8] c"GE\00", section "{{[^"]*}}swift5_reflstr{{[^"]*}}"
39+
40+
// CHECK-DAG: @"\01l__swift5_reflection_descriptor" = private constant { {{.*}} } { i32 1, i32 1, i32 2, {{.*}} }
41+
42+
// CHECK-DAG: @"$S19reflection_metadata10MyProtocol_pMF" = internal constant {{.*}}swift5_fieldmd
43+
// CHECK-DAG: @"$S19reflection_metadata7MyClassCMF" = internal constant {{.*}}swift5_fieldmd
44+
// CHECK-DAG: @"$S19reflection_metadata11ConformanceVAA10MyProtocolAAMA" = internal constant {{.*}}swift5_assocty
45+
// CHECK-DAG: @"$S19reflection_metadata8MyStructVMF" = internal constant {{.*}}swift5_fieldmd
46+
// CHECK-DAG: @"$S19reflection_metadata6MyEnumOMF" = internal constant {{.*}}swift5_fieldmd
47+
// CHECK-DAG: @"$S19reflection_metadata14MyGenericClassCMF" = internal constant {{.*}}swift5_fieldmd
48+
// CHECK-DAG: @"$S19reflection_metadata15MyGenericStructVMF" = internal constant {{.*}}swift5_fieldmd
49+
// CHECK-DAG: @"$S19reflection_metadata13MyGenericEnumOMF" = internal constant {{.*}}swift5_fieldmd
5050

5151
public protocol MyProtocol {
5252
associatedtype Inner

test/IRGen/reflection_metadata_imported.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import c_layout
44

55
// CHECK-DAG: @__swift_reflection_version = linkonce_odr hidden constant i16 {{[0-9]+}}
66

7-
// CHECK-DAG: @"$S28reflection_metadata_imported15HasImportedTypeVMF" = internal constant {{.*}}swift3_fieldmd
8-
// CHECK-DAG: @"$SSo1AVMB" = linkonce_odr hidden constant {{.*}}swift3_builtin
9-
// CHECK-DAG: @"$SSo11CrappyColorVMB" = linkonce_odr hidden constant {{.*}}swift3_builtin
10-
// CHECK-DAG: @"$SSo11CrappyColorVs16RawRepresentableSCMA" = linkonce_odr hidden constant {{.*}}swift3_assocty
7+
// CHECK-DAG: @"$S28reflection_metadata_imported15HasImportedTypeVMF" = internal constant {{.*}}swift5_fieldmd
8+
// CHECK-DAG: @"$SSo1AVMB" = linkonce_odr hidden constant {{.*}}swift5_builtin
9+
// CHECK-DAG: @"$SSo11CrappyColorVMB" = linkonce_odr hidden constant {{.*}}swift5_builtin
10+
// CHECK-DAG: @"$SSo11CrappyColorVs16RawRepresentableSCMA" = linkonce_odr hidden constant {{.*}}swift5_assocty
1111

1212
struct HasImportedType {
1313
let a: A

test/IRGen/swift3-metadata-coff.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public func f(s : S) -> (() -> ()) {
2525
return { gg = s }
2626
}
2727

28-
// CHECK-DAG: @"\01l__swift3_reflection_descriptor" = private constant {{.*}}, section ".sw3cptr$B"
29-
// CHECK-DAG: @{{[0-9]+}} = private constant [3 x i8] c"Sq\00", section ".sw3tyrf$B"
30-
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"none\00", section ".sw3rfst$B"
31-
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"some\00", section ".sw3rfst$B"
32-
// CHECK-DAG: @"$SSqMF" = internal constant {{.*}}, section ".sw3flmd$B"
33-
// CHECK-DAG: @"$Ss1SVs1PsMA" = internal constant {{.*}}, section ".sw3asty$B"
34-
// CHECK-DAG: @"$SBoMB" = internal constant {{.*}}, section ".sw3bltn$B"
28+
// CHECK-DAG: @"\01l__swift5_reflection_descriptor" = private constant {{.*}}, section ".sw5cptr$B"
29+
// CHECK-DAG: @{{[0-9]+}} = private constant [3 x i8] c"Sq\00", section ".sw5tyrf$B"
30+
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"none\00", section ".sw5rfst$B"
31+
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"some\00", section ".sw5rfst$B"
32+
// CHECK-DAG: @"$SSqMF" = internal constant {{.*}}, section ".sw5flmd$B"
33+
// CHECK-DAG: @"$Ss1SVs1PsMA" = internal constant {{.*}}, section ".sw5asty$B"
34+
// CHECK-DAG: @"$SBoMB" = internal constant {{.*}}, section ".sw5bltn$B"
3535

tools/swift-reflection-dump/swift-reflection-dump.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ findReflectionSection(const ObjectFile *objectFile,
118118

119119
static ReflectionInfo findReflectionInfo(const ObjectFile *objectFile) {
120120
auto fieldSection = findReflectionSection<FieldSection>(
121-
objectFile, {"__swift3_fieldmd", ".swift3_fieldmd", "swift3_fieldmd"});
121+
objectFile, {"__swift5_fieldmd", ".swift5_fieldmd", "swift5_fieldmd"});
122122
auto associatedTypeSection = findReflectionSection<AssociatedTypeSection>(
123-
objectFile, {"__swift3_assocty", ".swift3_assocty", "swift3_assocty"});
123+
objectFile, {"__swift5_assocty", ".swift5_assocty", "swift5_assocty"});
124124
auto builtinTypeSection = findReflectionSection<BuiltinTypeSection>(
125-
objectFile, {"__swift3_builtin", ".swift3_builtin", "swift3_builtin"});
125+
objectFile, {"__swift5_builtin", ".swift5_builtin", "swift5_builtin"});
126126
auto captureSection = findReflectionSection<CaptureSection>(
127-
objectFile, {"__swift3_capture", ".swift3_capture", "swift3_capture"});
127+
objectFile, {"__swift5_capture", ".swift5_capture", "swift5_capture"});
128128
auto typeRefSection = findReflectionSection<GenericSection>(
129-
objectFile, {"__swift3_typeref", ".swift3_typeref", "swift3_typeref"});
129+
objectFile, {"__swift5_typeref", ".swift5_typeref", "swift5_typeref"});
130130
auto reflectionStringsSection = findReflectionSection<GenericSection>(
131-
objectFile, {"__swift3_reflstr", ".swift3_reflstr", "swift3_reflstr"});
131+
objectFile, {"__swift5_reflstr", ".swift5_reflstr", "swift5_reflstr"});
132132

133133
return {
134134
{fieldSection.first, fieldSection.second},

utils/cmpcodesize/cmpcodesize/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def compare_sizes_of_file(old_files, new_files, all_sections, list_categories):
207207
compare_sizes(old_sizes, new_sizes, "__const", section_title)
208208
compare_sizes(old_sizes, new_sizes, "__objc_const", section_title)
209209
compare_sizes(old_sizes, new_sizes, "__data", section_title)
210-
compare_sizes(old_sizes, new_sizes, "__swift1_proto", section_title)
210+
compare_sizes(old_sizes, new_sizes, "__swift5_proto", section_title)
211211
compare_sizes(old_sizes, new_sizes, "__common", section_title)
212212
compare_sizes(old_sizes, new_sizes, "__bss", section_title)
213213

0 commit comments

Comments
 (0)