diff options
author | itrofimow <i.trofimow@yandex.ru> | 2024-08-22 06:53:41 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 19:53:41 -0700 |
commit | bf88db78bd80cb624b49510c628ba841fb1fed04 (patch) | |
tree | 666a66eb1f43c1400aeca581e6a5bd2fa6fc85df /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
parent | 65f66d2c605f0c9b0af26244f4d42ca93f552ec8 (diff) | |
download | llvm-bf88db78bd80cb624b49510c628ba841fb1fed04.zip llvm-bf88db78bd80cb624b49510c628ba841fb1fed04.tar.gz llvm-bf88db78bd80cb624b49510c628ba841fb1fed04.tar.bz2 |
[Symbolizer, DebugInfo] Clean up LLVMSymbolizer API: const string& -> StringRef (#104541)
Nothing in the affected code depends on the `ModuleName` being
null-terminated,
so take it by `StringRef` instead of `const std::string &`.
This change simplifies API consumption, since one doesn't always have a
`std::string` at the call site (might have `std::string_view` instead),
and also gives some minor performance improvements by removing
string-copies in the cache-hit path of `getOrCreateModuleInfo`.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions