[cfe-commits] r119552 - /cfe/trunk/lib/Driver/Tools.cpp

Rafael Espindola rafael.espindola at gmail.com
Wed Nov 17 12:37:10 PST 2010


Author: rafael
Date: Wed Nov 17 14:37:10 2010
New Revision: 119552

URL: http://llvm.org/viewvc/llvm-project?rev=119552&view=rev
Log:
Don't warn about -w not being used in a link. Necessary to get sane
results in the gdb testsuite.

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=119552&r1=119551&r2=119552&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Nov 17 14:37:10 2010
@@ -3212,6 +3212,9 @@
 
   // Silence warning for "clang -g foo.o -o foo"
   Args.ClaimAllArgs(options::OPT_g_Group);
+  // and for "clang -g foo.o -o foo". Other warning options are already
+  // handled somewhere else.
+  Args.ClaimAllArgs(options::OPT_w);
 
   if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) {
     CmdArgs.push_back("--sysroot");





More information about the cfe-commits mailing list