@@ -138,7 +138,7 @@ class OrcMCJITReplacement : public ExecutionEngine {
138
138
std::shared_ptr<MCJITMemoryManager> ClientMM;
139
139
};
140
140
141
- class LinkingResolver : public JITSymbolResolver {
141
+ class LinkingResolver : public LegacyJITSymbolResolver {
142
142
public:
143
143
LinkingResolver (OrcMCJITReplacement &M) : M(M) {}
144
144
@@ -160,20 +160,19 @@ class OrcMCJITReplacement : public ExecutionEngine {
160
160
static ExecutionEngine *
161
161
createOrcMCJITReplacement (std::string *ErrorMsg,
162
162
std::shared_ptr<MCJITMemoryManager> MemMgr,
163
- std::shared_ptr<JITSymbolResolver > Resolver,
163
+ std::shared_ptr<LegacyJITSymbolResolver > Resolver,
164
164
std::unique_ptr<TargetMachine> TM) {
165
165
return new OrcMCJITReplacement (std::move (MemMgr), std::move (Resolver),
166
166
std::move (TM));
167
167
}
168
168
169
169
public:
170
- OrcMCJITReplacement (
171
- std::shared_ptr<MCJITMemoryManager> MemMgr,
172
- std::shared_ptr<JITSymbolResolver> ClientResolver,
173
- std::unique_ptr<TargetMachine> TM)
170
+ OrcMCJITReplacement (std::shared_ptr<MCJITMemoryManager> MemMgr,
171
+ std::shared_ptr<LegacyJITSymbolResolver> ClientResolver,
172
+ std::unique_ptr<TargetMachine> TM)
174
173
: ExecutionEngine(TM->createDataLayout ()), TM(std::move(TM)),
175
- MemMgr(std::make_shared<MCJITReplacementMemMgr>(* this ,
176
- std::move (MemMgr))),
174
+ MemMgr(
175
+ std::make_shared<MCJITReplacementMemMgr>(* this , std::move(MemMgr))),
177
176
Resolver(std::make_shared<LinkingResolver>(*this )),
178
177
ClientResolver(std::move(ClientResolver)), NotifyObjectLoaded(*this ),
179
178
NotifyFinalized(*this ),
@@ -378,7 +377,7 @@ class OrcMCJITReplacement : public ExecutionEngine {
378
377
std::unique_ptr<TargetMachine> TM;
379
378
std::shared_ptr<MCJITReplacementMemMgr> MemMgr;
380
379
std::shared_ptr<LinkingResolver> Resolver;
381
- std::shared_ptr<JITSymbolResolver > ClientResolver;
380
+ std::shared_ptr<LegacyJITSymbolResolver > ClientResolver;
382
381
Mangler Mang;
383
382
384
383
// IMPORTANT: ShouldDelete *must* come before LocalModules: The shared_ptr
0 commit comments