@@ -33,7 +33,8 @@ using namespace swift;
3333void swift::initializeProtocolLookup () {
3434 void *start;
3535 uintptr_t size;
36- GET_SECTION_START_AND_SIZE (start, size, TextSegment, ProtocolsSection);
36+ GET_SECTION_START_AND_SIZE (start, size, MachOTextSegment,
37+ MachOProtocolsSection);
3738 if (start == nullptr || size == 0 )
3839 return ;
3940 addImageProtocolsBlockCallbackUnsafe (start, size);
@@ -42,17 +43,17 @@ void swift::initializeProtocolLookup() {
4243void swift::initializeProtocolConformanceLookup () {
4344 void *start;
4445 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 );
4748 if (start == nullptr || size == 0 )
4849 return ;
4950 addImageProtocolConformanceBlockCallbackUnsafe (start, size);
5051}
5152void swift::initializeTypeMetadataRecordLookup () {
5253 void *start;
5354 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 );
5657 if (start == nullptr || size == 0 )
5758 return ;
5859 addImageTypeMetadataRecordBlockCallbackUnsafe (start, size);
@@ -61,14 +62,14 @@ void swift::initializeTypeMetadataRecordLookup() {
6162void swift::initializeDynamicReplacementLookup () {
6263 void *start1;
6364 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 );
6667 if (start1 == nullptr || size1 == 0 )
6768 return ;
6869 void *start2;
6970 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 );
7273 if (start2 == nullptr || size2 == 0 )
7374 return ;
7475 addImageDynamicReplacementBlockCallback (start1, size1, start2, size2);
0 commit comments