@@ -33,7 +33,8 @@ using namespace swift;
33
33
void swift::initializeProtocolLookup () {
34
34
void *start;
35
35
uintptr_t size;
36
- GET_SECTION_START_AND_SIZE (start, size, TextSegment, ProtocolsSection);
36
+ GET_SECTION_START_AND_SIZE (start, size, MachOTextSegment,
37
+ MachOProtocolsSection);
37
38
if (start == nullptr || size == 0 )
38
39
return ;
39
40
addImageProtocolsBlockCallbackUnsafe (start, size);
@@ -42,17 +43,17 @@ void swift::initializeProtocolLookup() {
42
43
void swift::initializeProtocolConformanceLookup () {
43
44
void *start;
44
45
uintptr_t size;
45
- GET_SECTION_START_AND_SIZE (start, size, TextSegment ,
46
- ProtocolConformancesSection );
46
+ GET_SECTION_START_AND_SIZE (start, size, MachOTextSegment ,
47
+ MachOProtocolConformancesSection );
47
48
if (start == nullptr || size == 0 )
48
49
return ;
49
50
addImageProtocolConformanceBlockCallbackUnsafe (start, size);
50
51
}
51
52
void swift::initializeTypeMetadataRecordLookup () {
52
53
void *start;
53
54
uintptr_t size;
54
- GET_SECTION_START_AND_SIZE (start, size, TextSegment ,
55
- TypeMetadataRecordSection );
55
+ GET_SECTION_START_AND_SIZE (start, size, MachOTextSegment ,
56
+ MachOTypeMetadataRecordSection );
56
57
if (start == nullptr || size == 0 )
57
58
return ;
58
59
addImageTypeMetadataRecordBlockCallbackUnsafe (start, size);
@@ -61,14 +62,14 @@ void swift::initializeTypeMetadataRecordLookup() {
61
62
void swift::initializeDynamicReplacementLookup () {
62
63
void *start1;
63
64
uintptr_t size1;
64
- GET_SECTION_START_AND_SIZE (start1, size1, TextSegment ,
65
- DynamicReplacementSection );
65
+ GET_SECTION_START_AND_SIZE (start1, size1, MachOTextSegment ,
66
+ MachODynamicReplacementSection );
66
67
if (start1 == nullptr || size1 == 0 )
67
68
return ;
68
69
void *start2;
69
70
uintptr_t size2;
70
- GET_SECTION_START_AND_SIZE (start2, size2, TextSegment ,
71
- DynamicReplacementSection );
71
+ GET_SECTION_START_AND_SIZE (start2, size2, MachOTextSegment ,
72
+ MachODynamicReplacementSection );
72
73
if (start2 == nullptr || size2 == 0 )
73
74
return ;
74
75
addImageDynamicReplacementBlockCallback (start1, size1, start2, size2);
0 commit comments