[llvm] [Symbolizer, DebugInfo] Clean up LLVMSymbolizer API: const string& -> StringRef (PR #104541)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 02:06:05 PDT 2024
================
@@ -604,13 +604,13 @@ LLVMSymbolizer::createModuleInfo(const ObjectFile *Obj,
}
Expected<SymbolizableModule *>
-LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
- std::string BinaryName = ModuleName;
- std::string ArchName = Opts.DefaultArch;
+LLVMSymbolizer::getOrCreateModuleInfo(StringRef ModuleName) {
+ StringRef BinaryName = ModuleName;
+ StringRef ArchName = Opts.DefaultArch;
----------------
jh7370 wrote:
I'm curious to see whether the change has any significant performance impact. Do you have a way of measuring the time taken with and without this specific bit of the change, with a release build of the symbolizer?
https://github.com/llvm/llvm-project/pull/104541
More information about the llvm-commits
mailing list