Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | if (auto Err = ISManager.createStubs(StubInits)) { | ||||
return; | return; | ||||
} | } | ||||
SymbolMap Stubs; | SymbolMap Stubs; | ||||
for (auto &Alias : RequestedAliases) | for (auto &Alias : RequestedAliases) | ||||
Stubs[Alias.first] = ISManager.findStub(*Alias.first, false); | Stubs[Alias.first] = ISManager.findStub(*Alias.first, false); | ||||
// No registered dependencies, so these calls cannot fail. | // No registered dependencies, so these calls cannot fail. | ||||
cantFail(R.notifyResolved(Stubs)); | llvm_cantFail(R.notifyResolved(Stubs)); | ||||
cantFail(R.notifyEmitted()); | llvm_cantFail(R.notifyEmitted()); | ||||
} | } | ||||
void LazyReexportsMaterializationUnit::discard(const JITDylib &JD, | void LazyReexportsMaterializationUnit::discard(const JITDylib &JD, | ||||
const SymbolStringPtr &Name) { | const SymbolStringPtr &Name) { | ||||
assert(CallableAliases.count(Name) && | assert(CallableAliases.count(Name) && | ||||
"Symbol not covered by this MaterializationUnit"); | "Symbol not covered by this MaterializationUnit"); | ||||
CallableAliases.erase(Name); | CallableAliases.erase(Name); | ||||
} | } | ||||
Show All 14 Lines |