[PATCH] D46910: [Support] Avoid normalization in sys::getDefaultTargetTriple
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 18 11:37:03 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332750: [Support] Avoid normalization in sys::getDefaultTargetTriple (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46910?vs=147431&id=147567#toc
Repository:
rC Clang
https://reviews.llvm.org/D46910
Files:
lib/Frontend/CompilerInvocation.cpp
Index: lib/Frontend/CompilerInvocation.cpp
===================================================================
--- lib/Frontend/CompilerInvocation.cpp
+++ lib/Frontend/CompilerInvocation.cpp
@@ -2927,10 +2927,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(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46910.147567.patch
Type: text/x-patch
Size: 914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180518/4931e3fb/attachment.bin>
More information about the cfe-commits
mailing list