[cfe-commits] r78027 - /cfe/trunk/utils/ccc-analyzer
    Ted Kremenek 
    kremenek at apple.com
       
    Mon Aug  3 17:57:12 PDT 2009
    
    
  
Author: kremenek
Date: Mon Aug  3 19:57:12 2009
New Revision: 78027
URL: http://llvm.org/viewvc/llvm-project?rev=78027&view=rev
Log:
Recognize '-M' and '-MM' options.
Modified:
    cfe/trunk/utils/ccc-analyzer
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=78027&r1=78026&r2=78027&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Aug  3 19:57:12 2009
@@ -410,7 +410,7 @@
   my ($ArgKey) = split /=/,$Arg,2;
 
   # Modes ccc-analyzer supports
-  if ($Arg eq '-E') { $Action = 'preprocess'; }
+  if ($Arg =~ /^-(E|MM?)$/) { $Action = 'preprocess'; }
   elsif ($Arg eq '-c') { $Action = 'compile'; }
   elsif ($Arg =~ /^-print-prog-name/) { exit 0; }
 
    
    
More information about the cfe-commits
mailing list