]> granicus.if.org Git - clang/commitdiff
Remove regression where the analyzer was not called.
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Aug 2008 22:30:34 +0000 (22:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Aug 2008 22:30:34 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55440 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index a669e8924a1addd5836e58eea1f231b650e63f21..6aa03bc9220e33a95f3eb0d25e5b00da1f9749da 100755 (executable)
@@ -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);
+
+