Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/source/API/SBPlatform.cpp
Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
const char * | const char * | ||||
SBPlatform::GetTriple() | SBPlatform::GetTriple() | ||||
{ | { | ||||
PlatformSP platform_sp(GetSP()); | PlatformSP platform_sp(GetSP()); | ||||
if (platform_sp) | if (platform_sp) | ||||
{ | { | ||||
ArchSpec arch(platform_sp->GetRemoteSystemArchitecture()); | ArchSpec arch(platform_sp->GetSystemArchitecture()); | ||||
if (arch.IsValid()) | if (arch.IsValid()) | ||||
{ | { | ||||
// Const-ify the string so we don't need to worry about the lifetime of the string | // Const-ify the string so we don't need to worry about the lifetime of the string | ||||
return ConstString(arch.GetTriple().getTriple().c_str()).GetCString(); | return ConstString(arch.GetTriple().getTriple().c_str()).GetCString(); | ||||
} | } | ||||
} | } | ||||
return NULL; | return NULL; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |