File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
include/llvm/ExecutionEngine/Orc Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ class JITLinkRedirectableSymbolManager : public RedirectableSymbolManager {
4040 }
4141
4242 void emitRedirectableSymbols (std::unique_ptr<MaterializationResponsibility> R,
43- SymbolAddrMap InitialDests) override ;
43+ SymbolMap InitialDests) override ;
4444
45- Error redirect (JITDylib &JD, const SymbolAddrMap &NewDests) override ;
45+ Error redirect (JITDylib &JD, const SymbolMap &NewDests) override ;
4646
4747private:
4848 JITLinkRedirectableSymbolManager (
Original file line number Diff line number Diff line change @@ -22,13 +22,10 @@ namespace orc {
2222// / runtime.
2323class RedirectionManager {
2424public:
25- // / Symbol name to symbol definition map.
26- using SymbolAddrMap = DenseMap<SymbolStringPtr, ExecutorSymbolDef>;
27-
2825 virtual ~RedirectionManager () = default ;
2926 // / Change the redirection destination of given symbols to new destination
3027 // / symbols.
31- virtual Error redirect (JITDylib &JD, const SymbolAddrMap &NewDests) = 0;
28+ virtual Error redirect (JITDylib &JD, const SymbolMap &NewDests) = 0;
3229
3330 // / Change the redirection destination of given symbol to new destination
3431 // / symbol.
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ constexpr StringRef StubSuffix = "$__stub_ptr";
2323} // namespace
2424
2525void JITLinkRedirectableSymbolManager::emitRedirectableSymbols (
26- std::unique_ptr<MaterializationResponsibility> R,
27- SymbolAddrMap InitialDests) {
26+ std::unique_ptr<MaterializationResponsibility> R, SymbolMap InitialDests) {
2827
2928 auto &ES = ObjLinkingLayer.getExecutionSession ();
3029 Triple TT = ES.getTargetTriple ();
@@ -66,8 +65,8 @@ void JITLinkRedirectableSymbolManager::emitRedirectableSymbols(
6665 ObjLinkingLayer.emit (std::move (R), std::move (G));
6766}
6867
69- Error JITLinkRedirectableSymbolManager::redirect (
70- JITDylib &JD, const SymbolAddrMap &NewDests) {
68+ Error JITLinkRedirectableSymbolManager::redirect (JITDylib &JD,
69+ const SymbolMap &NewDests) {
7170 auto &ES = ObjLinkingLayer.getExecutionSession ();
7271 SymbolLookupSet LS;
7372 DenseMap<NonOwningSymbolStringPtr, SymbolStringPtr> PtrToStub;
You can’t perform that action at this time.
0 commit comments