summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/Host.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-10-11 17:38:58 +0000
committerGreg Clayton <gclayton@apple.com>2012-10-11 17:38:58 +0000
commitb29e6c6e84884e4c78d03df22ef9bd9f1e34bbce (patch)
tree70264cf8b48e37aae2a8310db0c0f23c188d14e9 /lldb/source/Host/common/Host.cpp
parentd2acff9c3e43c0a94fec166d48251a7809a893f7 (diff)
downloadbcm5719-llvm-b29e6c6e84884e4c78d03df22ef9bd9f1e34bbce.tar.gz
bcm5719-llvm-b29e6c6e84884e4c78d03df22ef9bd9f1e34bbce.zip
Patch from Andrew Kaylor that fixes Linux default host triple values.
llvm-svn: 165728
Diffstat (limited to 'lldb/source/Host/common/Host.cpp')
-rw-r--r--lldb/source/Host/common/Host.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index 4ed06c000d0..e5866687c54 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -332,6 +332,11 @@ Host::GetArchitecture (SystemDefaultArchitecture arch_kind)
g_host_arch_32.Clear();
g_host_arch_64.Clear();
+ // If the OS is Linux, "unknown" in the vendor slot isn't what we want
+ // for the default triple. It's probably an artifact of config.guess.
+ if (triple.getOS() == llvm::Triple::Linux && triple.getVendor() == llvm::Triple::UnknownVendor)
+ triple.setVendorName("");
+
switch (triple.getArch())
{
default:
OpenPOWER on IntegriCloud