summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-10-12 16:15:28 +0000
committerGreg Clayton <gclayton@apple.com>2012-10-12 16:15:28 +0000
commit3c2fabf27a2cc4fe109b958fa2f2046bb39a83d7 (patch)
tree385ce8a1d5d9e6d56d9781c74ab06786083ce7b7
parent926cce7619b0b42fe05b9523f3618b89a51a37aa (diff)
downloadbcm5719-llvm-3c2fabf27a2cc4fe109b958fa2f2046bb39a83d7.tar.gz
bcm5719-llvm-3c2fabf27a2cc4fe109b958fa2f2046bb39a83d7.zip
Patch from Andrew Kaylor that centralized where the info for:
ConstString Host::GetVendorString(); ConstString Host::GetOSString(); comes from. It now all comes from the Host::GetArchitecture (eSystemDefaultArchitecture) like the Apple build was doing to minimize the number of places that need to be updated when Host::GetArchitecture () is called. llvm-svn: 165805
-rw-r--r--lldb/source/Host/common/Host.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index e5866687c54..2b9ae599d8c 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -382,15 +382,9 @@ Host::GetVendorString()
static ConstString g_vendor;
if (!g_vendor)
{
-#if defined (__APPLE__)
const ArchSpec &host_arch = GetArchitecture (eSystemDefaultArchitecture);
const llvm::StringRef &str_ref = host_arch.GetTriple().getVendorName();
g_vendor.SetCStringWithLength(str_ref.data(), str_ref.size());
-#elif defined (__linux__)
- g_vendor.SetCString("gnu");
-#elif defined (__FreeBSD__)
- g_vendor.SetCString("freebsd");
-#endif
}
return g_vendor;
}
@@ -401,15 +395,9 @@ Host::GetOSString()
static ConstString g_os_string;
if (!g_os_string)
{
-#if defined (__APPLE__)
const ArchSpec &host_arch = GetArchitecture (eSystemDefaultArchitecture);
const llvm::StringRef &str_ref = host_arch.GetTriple().getOSName();
g_os_string.SetCStringWithLength(str_ref.data(), str_ref.size());
-#elif defined (__linux__)
- g_os_string.SetCString("linux");
-#elif defined (__FreeBSD__)
- g_os_string.SetCString("freebsd");
-#endif
}
return g_os_string;
}
OpenPOWER on IntegriCloud