Lines Matching refs:platform_sp
23 PlatformSP platform_sp; in CreatePlatformWithOptions() local
26 platform_sp = platforms.Create(m_platform_name); in CreatePlatformWithOptions()
27 if (!platform_sp) { in CreatePlatformWithOptions()
32 if (platform_sp) { in CreatePlatformWithOptions()
33 if (platform_arch.IsValid() && !platform_sp->IsCompatibleArchitecture( in CreatePlatformWithOptions()
36 platform_sp->GetPluginName(), in CreatePlatformWithOptions()
38 platform_sp.reset(); in CreatePlatformWithOptions()
39 return platform_sp; in CreatePlatformWithOptions()
43 platform_sp = platforms.GetOrCreate(arch, {}, &platform_arch, error); in CreatePlatformWithOptions()
46 if (platform_sp) { in CreatePlatformWithOptions()
48 platforms.SetSelectedPlatform(platform_sp); in CreatePlatformWithOptions()
50 platform_sp->SetOSVersion(m_os_version); in CreatePlatformWithOptions()
53 platform_sp->SetSDKRootDirectory(m_sdk_sysroot); in CreatePlatformWithOptions()
56 platform_sp->SetSDKBuild(m_sdk_build); in CreatePlatformWithOptions()
59 return platform_sp; in CreatePlatformWithOptions()
129 const lldb::PlatformSP &platform_sp) const { in PlatformMatches()
130 if (platform_sp) { in PlatformMatches()
132 if (platform_sp->GetName() != m_platform_name) in PlatformMatches()
136 if (m_sdk_build && m_sdk_build != platform_sp->GetSDKBuild()) in PlatformMatches()
139 if (m_sdk_sysroot && m_sdk_sysroot != platform_sp->GetSDKRootDirectory()) in PlatformMatches()
142 if (!m_os_version.empty() && m_os_version != platform_sp->GetOSVersion()) in PlatformMatches()