Skip to content

Commit f75ed39

Browse files
authored
Merge pull request #41323 from xedin/update-object-file
[ABI] Add "accessible functions" section to object format
2 parents 5ecfe2a + bc013b3 commit f75ed39

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

include/swift/ABI/ObjectFile.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace swift {
1414

15-
/// Represents the eight reflection sections used by Swift
15+
/// Represents the nine reflection sections used by Swift
1616
enum ReflectionSectionKind : uint8_t {
1717
fieldmd,
1818
assocty,
@@ -21,7 +21,8 @@ enum ReflectionSectionKind : uint8_t {
2121
typeref,
2222
reflstr,
2323
conform,
24-
protocs
24+
protocs,
25+
acfuncs,
2526
};
2627

2728
/// Abstract base class responsible for providing the correct reflection section
@@ -58,6 +59,8 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
5859
return "__swift5_proto";
5960
case protocs:
6061
return "__swift5_protos";
62+
case acfuncs:
63+
return "__swift5_acfuncs";
6164
}
6265
llvm_unreachable("Section type not found.");
6366
}
@@ -91,6 +94,8 @@ class SwiftObjectFileFormatELF : public SwiftObjectFileFormat {
9194
return "swift5_protocol_conformances";
9295
case protocs:
9396
return "swift5_protocols";
97+
case acfuncs:
98+
return "swift5_accessible_functions";
9499
}
95100
llvm_unreachable("Section type not found.");
96101
}
@@ -121,6 +126,8 @@ class SwiftObjectFileFormatCOFF : public SwiftObjectFileFormat {
121126
return ".sw5prtc$B";
122127
case protocs:
123128
return ".sw5prt$B";
129+
case acfuncs:
130+
return ".sw5acfn$B";
124131
}
125132
llvm_unreachable("Section not found.");
126133
}

0 commit comments

Comments
 (0)