[Lldb-commits] [lldb] [lldb][NFC] Remove Stream::Printf calls with constant strings in Interpreter/* (PR #210289)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 20 02:16:13 PDT 2026
Teemperor wrote:
> There are places in here that do `string_ref.str().c_str()`, but "PutCString" (despite its name) actually takes a StringRef. You could save even more instructions by avoiding that string construction and (in the case of long strings) an allocation+deallocation.
That's a good point. Fixed!
https://github.com/llvm/llvm-project/pull/210289
More information about the lldb-commits
mailing list