[cfe-commits] r119166 - /cfe/trunk/lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Nov 15 10:28:16 PST 2010
Author: rafael
Date: Mon Nov 15 12:28:16 2010
New Revision: 119166
URL: http://llvm.org/viewvc/llvm-project?rev=119166&view=rev
Log:
Fixes PR8611.
Silence warning about -g not being used during linking. I couldn't find any
change in behavior in gcc liking when given -g. Please open another bug if
I missed something.
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=119166&r1=119165&r2=119166&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Nov 15 12:28:16 2010
@@ -3207,6 +3207,9 @@
const Driver &D = ToolChain.getDriver();
ArgStringList CmdArgs;
+ // Silence warning for "clang -g foo.o -o foo"
+ Args.ClaimAllArgs(options::OPT_g_Group);
+
if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) {
CmdArgs.push_back("--sysroot");
CmdArgs.push_back(A->getValue(Args));
More information about the cfe-commits
mailing list