Skip to content

Commit da66f6a

Browse files
[llvm-jitlink] Use heterogenous lookups with std::map (NFC) (#113245)
1 parent ac1a01f commit da66f6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ void Session::modifyPassConfig(const Triple &TT,
12011201
}
12021202

12031203
Expected<JITDylib *> Session::getOrLoadDynamicLibrary(StringRef LibPath) {
1204-
auto It = DynLibJDs.find(LibPath.str());
1204+
auto It = DynLibJDs.find(LibPath);
12051205
if (It != DynLibJDs.end()) {
12061206
return It->second;
12071207
}

llvm/tools/llvm-jitlink/llvm-jitlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct Session {
6565
GetSymbolTargetFunction GetSymbolTarget);
6666
};
6767

68-
using DynLibJDMap = std::map<std::string, orc::JITDylib *>;
68+
using DynLibJDMap = std::map<std::string, orc::JITDylib *, std::less<>>;
6969
using SymbolInfoMap = StringMap<MemoryRegionInfo>;
7070
using FileInfoMap = StringMap<FileInfo>;
7171

0 commit comments

Comments
 (0)