diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-08-27 22:30:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-08-27 22:30:34 +0000 |
commit | 948e06babdf81033517b54910fedda8079f29ff9 (patch) | |
tree | 0702bee2200501264d2a930fa835dce2dd4e5cb2 | |
parent | 5618bd4a52c45fbbb605e3ba885663b2164db8a3 (diff) |
Remove regression where the analyzer was not called.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55440 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index a669e8924a..6aa03bc922 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -105,8 +105,12 @@ sub Analyze { push @CmdArgs,'-o'; push @CmdArgs,$HtmlDir; } - - system $Cmd,@CmdArgs; + + if (defined $ENV{'CCC_UBI'}) { + push @CmdArgs,"--analyzer-viz-egraph-ubigraph"; + } + + system $Cmd,@CmdArgs; # Did the command die because of a signal? if ($? & 127 and $Cmd eq $Clang and defined $HtmlDir) { @@ -188,7 +192,6 @@ my $Output; # Forward arguments to gcc. my $Status = system($CC,@ARGV); -if ($Status) { exit($Status >> 8); } # Get the analysis options. my $Analyses = $ENV{'CCC_ANALYZER_ANALYSIS'}; @@ -324,8 +327,6 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { if (!($Arg =~ /^-/)) { push @Files,$Arg; next; } - - exit 0; } if ($Action eq 'compile' or $Action eq 'link') { @@ -357,3 +358,6 @@ if ($Action eq 'compile' or $Action eq 'link') { } } +exit($Status >> 8); + + |