summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-06-03 22:31:06 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-06-03 22:31:06 +0000
commitac76ec7ce8ca13496fb0b061ab882ac459198126 (patch)
treed8c6d98e920198d89b5aca5a8ceac9f9b1a89524 /llvm/lib/Support/Triple.cpp
parent0799ff9e64b80e752a674d7a9dafea4f9d7f4761 (diff)
downloadbcm5719-llvm-ac76ec7ce8ca13496fb0b061ab882ac459198126.tar.gz
bcm5719-llvm-ac76ec7ce8ca13496fb0b061ab882ac459198126.zip
ADT: handle special case of ARM environment for SUSE
SUSE treats "gnueabi" as "gnueabihf" so make sure that we normalise the environment. llvm-svn: 304670
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index f7b7ad89e95..dc059f86241 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -877,6 +877,10 @@ std::string Triple::normalize(StringRef Str) {
}
}
+ // SUSE uses "gnueabi" to mean "gnueabihf"
+ if (Vendor == Triple::SUSE && Environment == llvm::Triple::GNUEABI)
+ Components[3] = "gnueabihf";
+
if (OS == Triple::Win32) {
Components.resize(4);
Components[2] = "windows";
OpenPOWER on IntegriCloud