[cfe-commits] r68018 - /cfe/trunk/lib/Driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Sun Mar 29 15:24:54 PDT 2009


Author: ddunbar
Date: Sun Mar 29 17:24:54 2009
New Revision: 68018

URL: http://llvm.org/viewvc/llvm-project?rev=68018&view=rev
Log:
Driver: Make sure to claim -### before emitting "unused argument"
warnings.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=68018&r1=68017&r2=68018&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sun Mar 29 17:24:54 2009
@@ -712,6 +712,9 @@
   if (Diags.getNumErrors())
     return;
 
+  // Claim -### here.
+  (void) C.getArgs().hasArg(options::OPT__HASH_HASH_HASH);
+  
   for (ArgList::const_iterator it = C.getArgs().begin(), ie = C.getArgs().end();
        it != ie; ++it) {
     Arg *A = *it;





More information about the cfe-commits mailing list