[cfe-commits] r170010 - /cfe/trunk/lib/Driver/Tools.cpp
Chad Rosier
mcrosier at apple.com
Wed Dec 12 12:06:31 PST 2012
Author: mcrosier
Date: Wed Dec 12 14:06:31 2012
New Revision: 170010
URL: http://llvm.org/viewvc/llvm-project?rev=170010&view=rev
Log:
[driver] Don't warn about an unused -flto option.
rdar://12851905
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=170010&r1=170009&r2=170010&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Dec 12 14:06:31 2012
@@ -2281,6 +2281,10 @@
A->render(Args, CmdArgs);
}
+ // Don't warn about unused -flto. This can happen when we're preprocessing or
+ // precompiling.
+ Args.ClaimAllArgs(options::OPT_flto);
+
Args.AddAllArgs(CmdArgs, options::OPT_W_Group);
if (Args.hasFlag(options::OPT_pedantic, options::OPT_no_pedantic, false))
CmdArgs.push_back("-pedantic");
More information about the cfe-commits
mailing list