diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 16:05:17 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 16:05:17 +0000 |
commit | 476fc6715c4119a8e39ec70fbf9df1c57580ead8 (patch) | |
tree | 95f7f7cb087e9b8079285cfab683d1ad4c2388e4 | |
parent | 7acafd032e145dbdbbed9274ca57ec2c86b912bc (diff) | |
download | clang-476fc6715c4119a8e39ec70fbf9df1c57580ead8.tar.gz |
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.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 5a5986b5bc..ee225f25e8 100644 --- a/lib/Driver/Driver.cpp +++ b/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") |