[Lldb-commits] [lldb] [lldb][NFC] Remove Stream::Printf calls with constant strings in Interpreter/* (PR #210289)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 17 10:57:24 PDT 2026


https://github.com/bulbazord requested changes to this pull request.

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.

https://github.com/llvm/llvm-project/pull/210289


More information about the lldb-commits mailing list