Decompose callThroughToSymbol() into findReexport(), resolveSymbol(), notifyResolved() and reportCallThroughError(). This allows derived classes to reuse the functionality while adding their own code in between. ThinLtoJIT's NotifyingCallThroughManager is an example for that. It wants to send a notification as soon as it figured out the symbol name.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 47163 Build 49971: arc lint + arc unit
Event Timeline
llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp | ||
---|---|---|
45 | So far this error ends up in reportCallThroughError(), which reports it to the ExecutionSession and eventually returns ErrorHandlerAddr to the JITed code. Not sure this can be recovered from, but if so, it should probably get its own ErrorInfo. |
Style suggestion aside, LGTM. Thanks very much Stefan!
llvm/include/llvm/ExecutionEngine/Orc/LazyReexports.h | ||
---|---|---|
109 | Could this lambda be factored out into a callThroughToSymbol method on LocalLazyCallThroughManager for consistency with NotifyingCallThroughManager? |
Factor out callThroughToSymbol(). Drop example use case from ThinLtoJIT. Format change set.
Remove assert(Notifiers.find(TrampolineAddr) != Notifiers.end()); from findReexport() -- NotifyResolved may have been issued from a concurrent call-through
Could this lambda be factored out into a callThroughToSymbol method on LocalLazyCallThroughManager for consistency with NotifyingCallThroughManager?