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
This commit is contained in:
Anton Korobeynikov 2011-03-05 16:05:17 +00:00
parent 965b0e3106
commit a9ff8576fb
1 changed files with 1 additions and 1 deletions

View File

@ -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")