summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-03-05 16:05:17 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-03-05 16:05:17 +0000
commita9ff8576fbaf22462f3ecc9e9a9f338d1136ace5 (patch)
tree9bf691ba6812b7738c697e3f155b9f9e7530385e /clang
parent965b0e3106c1318750909eeb65ea798fd31fbc26 (diff)
downloadbcm5719-llvm-a9ff8576fbaf22462f3ecc9e9a9f338d1136ace5.tar.gz
bcm5719-llvm-a9ff8576fbaf22462f3ecc9e9a9f338d1136ace5.zip
Normalize target triple passed out of driver. Basically this means
that at cc1 level we will always have normalized triple and thus can provide necessary default based on e.g. environment value (e.g. for "arm-eabi" triple, etc.) llvm-svn: 127087
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 5a5986b5bc2..ee225f25e8b 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1323,7 +1323,7 @@ std::string Driver::GetTemporaryPath(const char *Suffix) const {
const HostInfo *Driver::GetHostInfo(const char *TripleStr) const {
llvm::PrettyStackTraceString CrashInfo("Constructing host");
- llvm::Triple Triple(TripleStr);
+ llvm::Triple Triple(llvm::Triple::normalize(TripleStr).c_str());
// TCE is an osless target
if (Triple.getArchName() == "tce")
OpenPOWER on IntegriCloud