aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-08-04 00:57:12 +0000
committerTed Kremenek <kremenek@apple.com>2009-08-04 00:57:12 +0000
commitd732a7b771f8ab758411881126a83b7ca4db34a9 (patch)
tree183eeedc5817b375d95406d41e59557b649138c1
parente3bf8a8ab4eecc2746e2f8a35d7bc365c88ff674 (diff)
Recognize '-M' and '-MM' options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78027 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index f29c4d51d1..598e7024e9 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -410,7 +410,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
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; }