[Lldb-commits] [PATCH] D113314: [lldb] Use std::string instead of llvm::Twine

David Blaikie via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 5 13:01:23 PDT 2021


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Looks good to me.

Alternatively the string concatenation could be inlined, then the Twine usage would be correct - but would still need an explicit "str()", like this:

  SendPacketAndWaitForResponse(("QEnableCompression:type:" + avail_name + ";").str(), response)

Which may or may not be marginally faster because the Twine could cheaply compute the total length of the required buffer/presize the string... maybe.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113314/new/

https://reviews.llvm.org/D113314



More information about the lldb-commits mailing list