@@ -27,21 +27,20 @@ namespace llvm {
27
27
namespace orc {
28
28
29
29
struct MachOPerObjectSectionsToRegister {
30
- ExecutorAddressRange EHFrameSection;
31
- ExecutorAddressRange ThreadDataSection;
30
+ ExecutorAddrRange EHFrameSection;
31
+ ExecutorAddrRange ThreadDataSection;
32
32
};
33
33
34
34
struct MachOJITDylibInitializers {
35
- using SectionList = std::vector<ExecutorAddressRange >;
35
+ using SectionList = std::vector<ExecutorAddrRange >;
36
36
37
- MachOJITDylibInitializers (std::string Name,
38
- ExecutorAddress MachOHeaderAddress)
37
+ MachOJITDylibInitializers (std::string Name, ExecutorAddr MachOHeaderAddress)
39
38
: Name(std::move(Name)),
40
39
MachOHeaderAddress (std::move(MachOHeaderAddress)) {}
41
40
42
41
std::string Name;
43
- ExecutorAddress MachOHeaderAddress;
44
- ExecutorAddress ObjCImageInfoAddress;
42
+ ExecutorAddr MachOHeaderAddress;
43
+ ExecutorAddr ObjCImageInfoAddress;
45
44
46
45
StringMap<SectionList> InitSections;
47
46
};
@@ -185,7 +184,7 @@ class MachOPlatform : public Platform {
185
184
using SendDeinitializerSequenceFn =
186
185
unique_function<void (Expected<MachOJITDylibDeinitializerSequence>)>;
187
186
188
- using SendSymbolAddressFn = unique_function<void (Expected<ExecutorAddress >)>;
187
+ using SendSymbolAddressFn = unique_function<void (Expected<ExecutorAddr >)>;
189
188
190
189
static bool supportedTarget (const Triple &TT);
191
190
@@ -208,15 +207,15 @@ class MachOPlatform : public Platform {
208
207
StringRef JDName);
209
208
210
209
void rt_getDeinitializers (SendDeinitializerSequenceFn SendResult,
211
- ExecutorAddress Handle );
210
+ ExecutorAddr Handle );
212
211
213
- void rt_lookupSymbol (SendSymbolAddressFn SendResult, ExecutorAddress Handle ,
212
+ void rt_lookupSymbol (SendSymbolAddressFn SendResult, ExecutorAddr Handle ,
214
213
StringRef SymbolName);
215
214
216
215
// Records the addresses of runtime symbols used by the platform.
217
216
Error bootstrapMachORuntime (JITDylib &PlatformJD);
218
217
219
- Error registerInitInfo (JITDylib &JD, ExecutorAddress ObjCImageInfoAddr,
218
+ Error registerInitInfo (JITDylib &JD, ExecutorAddr ObjCImageInfoAddr,
220
219
ArrayRef<jitlink::Section *> InitSections);
221
220
222
221
Error registerPerObjectSections (const MachOPerObjectSectionsToRegister &POSR);
@@ -229,10 +228,10 @@ class MachOPlatform : public Platform {
229
228
SymbolStringPtr MachOHeaderStartSymbol;
230
229
std::atomic<bool > RuntimeBootstrapped{false };
231
230
232
- ExecutorAddress orc_rt_macho_platform_bootstrap;
233
- ExecutorAddress orc_rt_macho_platform_shutdown;
234
- ExecutorAddress orc_rt_macho_register_object_sections;
235
- ExecutorAddress orc_rt_macho_create_pthread_key;
231
+ ExecutorAddr orc_rt_macho_platform_bootstrap;
232
+ ExecutorAddr orc_rt_macho_platform_shutdown;
233
+ ExecutorAddr orc_rt_macho_register_object_sections;
234
+ ExecutorAddr orc_rt_macho_create_pthread_key;
236
235
237
236
DenseMap<JITDylib *, SymbolLookupSet> RegisteredInitSymbols;
238
237
@@ -249,7 +248,7 @@ class MachOPlatform : public Platform {
249
248
namespace shared {
250
249
251
250
using SPSMachOPerObjectSectionsToRegister =
252
- SPSTuple<SPSExecutorAddressRange, SPSExecutorAddressRange >;
251
+ SPSTuple<SPSExecutorAddrRange, SPSExecutorAddrRange >;
253
252
254
253
template <>
255
254
class SPSSerializationTraits <SPSMachOPerObjectSectionsToRegister,
@@ -274,12 +273,12 @@ class SPSSerializationTraits<SPSMachOPerObjectSectionsToRegister,
274
273
}
275
274
};
276
275
277
- using SPSNamedExecutorAddressRangeSequenceMap =
278
- SPSSequence<SPSTuple<SPSString, SPSExecutorAddressRangeSequence >>;
276
+ using SPSNamedExecutorAddrRangeSequenceMap =
277
+ SPSSequence<SPSTuple<SPSString, SPSExecutorAddrRangeSequence >>;
279
278
280
279
using SPSMachOJITDylibInitializers =
281
- SPSTuple<SPSString, SPSExecutorAddress, SPSExecutorAddress ,
282
- SPSNamedExecutorAddressRangeSequenceMap >;
280
+ SPSTuple<SPSString, SPSExecutorAddr, SPSExecutorAddr ,
281
+ SPSNamedExecutorAddrRangeSequenceMap >;
283
282
284
283
using SPSMachOJITDylibInitializerSequence =
285
284
SPSSequence<SPSMachOJITDylibInitializers>;
0 commit comments