Index: cfe/trunk/lib/Frontend/CompilerInvocation.cpp =================================================================== --- cfe/trunk/lib/Frontend/CompilerInvocation.cpp +++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp @@ -2930,10 +2930,11 @@ Opts.FPMath = Args.getLastArgValue(OPT_mfpmath); Opts.FeaturesAsWritten = Args.getAllArgValues(OPT_target_feature); Opts.LinkerVersion = Args.getLastArgValue(OPT_target_linker_version); - Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple)); + Opts.Triple = Args.getLastArgValue(OPT_triple); // Use the default target triple if unspecified. if (Opts.Triple.empty()) Opts.Triple = llvm::sys::getDefaultTargetTriple(); + Opts.Triple = llvm::Triple::normalize(Opts.Triple); Opts.OpenCLExtensionsAsWritten = Args.getAllArgValues(OPT_cl_ext_EQ); Opts.ForceEnableInt128 = Args.hasArg(OPT_fforce_enable_int128); Opts.NVPTXUseShortPointers = Args.hasFlag( Index: llvm/trunk/lib/Support/Unix/Host.inc =================================================================== --- llvm/trunk/lib/Support/Unix/Host.inc +++ llvm/trunk/lib/Support/Unix/Host.inc @@ -64,5 +64,5 @@ TargetTripleString = EnvTriple; #endif - return Triple::normalize(TargetTripleString); + return TargetTripleString; } Index: llvm/trunk/lib/Support/Windows/Host.inc =================================================================== --- llvm/trunk/lib/Support/Windows/Host.inc +++ llvm/trunk/lib/Support/Windows/Host.inc @@ -30,5 +30,5 @@ Triple = EnvTriple; #endif - return Triple::normalize(Triple); + return Triple; }