[lldb][NFCI] Remove unneeded temporary std::string allocations in SBAPI
authorAlex Langford <alangford@apple.com>
Wed, 12 Jul 2023 00:38:10 +0000 (17:38 -0700)
committerAlex Langford <alangford@apple.com>
Fri, 14 Jul 2023 17:46:42 +0000 (10:46 -0700)
commit7ee633a24b8ce87b3a9b2f0f4bd1aace634cd2a1
treeb358776fd775012d0455c9df1789cc77eee96a40
parentce225982af734bdb68dc054017fc4411c179591c
[lldb][NFCI] Remove unneeded temporary std::string allocations in SBAPI

This uses some friend class trickery to avoid some unneeded temporary
std::string allocations.

Differential Revision: https://reviews.llvm.org/D155035
lldb/include/lldb/API/SBStringList.h
lldb/source/API/SBDebugger.cpp
lldb/source/API/SBStringList.cpp
lldb/source/API/SBStructuredData.cpp
lldb/source/API/SBThread.cpp