[lldb][NFCI] Platforms should own their SDKBuild and SDKRootDirectory strings

These don't need to be ConstStrings. They don't really benefit much from
deduplication and comparing them isn't on a hot path, so they don't
really benefit much from quick comparisons.

Differential Revision: https://reviews.llvm.org/D152331
This commit is contained in:
Alex Langford
2023-06-06 18:48:31 -07:00
parent 7f26c27e03
commit f4be9ff645
7 changed files with 59 additions and 56 deletions

View File

@@ -488,7 +488,7 @@ uint32_t SBPlatform::GetOSUpdateVersion() {
void SBPlatform::SetSDKRoot(const char *sysroot) {
LLDB_INSTRUMENT_VA(this, sysroot);
if (PlatformSP platform_sp = GetSP())
platform_sp->SetSDKRootDirectory(ConstString(sysroot));
platform_sp->SetSDKRootDirectory(sysroot);
}
SBError SBPlatform::Get(SBFileSpec &src, SBFileSpec &dst) {