[llvm] [Symbolizer, DebugInfo] Clean up LLVMSymbolizer API: const string& -> StringRef (PR #104541)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 04:16:25 PDT 2024
================
@@ -210,7 +208,7 @@ class LLVMSymbolizer {
ObjectPairForPathArch;
/// Contains parsed binary for each path, or parsing error.
- std::map<std::string, CachedBinary> BinaryForPath;
+ std::map<std::string, CachedBinary, std::less<>> BinaryForPath;
----------------
itrofimow wrote:
`std::less<>` is transparent, counterpart to default map `Compare` being `std::less<std::string>`.
This allows to lookup this map by `StringRef` alongside with `std::string`
https://github.com/llvm/llvm-project/pull/104541
More information about the llvm-commits
mailing list