From: Ted Kremenek Date: Wed, 27 Aug 2008 22:30:34 +0000 (+0000) Subject: Remove regression where the analyzer was not called. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=948e06babdf81033517b54910fedda8079f29ff9;p=clang 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 --- 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); + +