Skip to content

Commit 5e75f29

Browse files
committed
[ORC] Replace RedirectionManager::SymbolAddrMap typedef with SymbolMap. NFC.
They're the same type -- no need for a separate typedef here.
1 parent ce0d085 commit 5e75f29

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

llvm/include/llvm/ExecutionEngine/Orc/JITLinkRedirectableSymbolManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

4747
private:
4848
JITLinkRedirectableSymbolManager(

llvm/include/llvm/ExecutionEngine/Orc/RedirectionManager.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ namespace orc {
2222
/// runtime.
2323
class RedirectionManager {
2424
public:
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.

llvm/lib/ExecutionEngine/Orc/JITLinkRedirectableSymbolManager.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ constexpr StringRef StubSuffix = "$__stub_ptr";
2323
} // namespace
2424

2525
void 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;

0 commit comments

Comments
 (0)