[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user