[cfe-commits] r77281 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Mon Jul 27 17:14:21 PDT 2009


Author: kremenek
Date: Mon Jul 27 19:14:21 2009
New Revision: 77281

URL: http://llvm.org/viewvc/llvm-project?rev=77281&view=rev
Log:
Only generate preprocessed files during crashes using Clang, not GCC.

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=77281&r1=77280&r2=77281&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Jul 27 19:14:21 2009
@@ -61,18 +61,12 @@
     $prefix = "clang_attribute_ignored";
   }
 
-  # Generate the preprocessed file with cc (i.e., gcc).
+  # Generate the preprocessed file with Clang.
   my ($PPH, $PPFile) = tempfile( $prefix . "_XXXXXX",
                                  SUFFIX => GetPPExt($Lang),
                                  DIR => $Dir);
-
-  system $CC, @$Args, "-E", "-o", $PPFile;
+  system $ClangCC, @$Args, "-E", "-o", $PPFile;
   close ($PPH);
-
-  # Generate the preprocessed file with clang.
-  my $PPFile_Clang = $PPFile;
-  $PPFile_Clang =~ s/[.](.+)$/.clang.$1/;  
-  system $ClangCC, @$Args, "-E", "-o", "$PPFile_Clang";
   
   # Create the info file.
   open (OUT, ">", "$PPFile.info.txt") or die "Cannot open $PPFile.info.txt\n";





More information about the cfe-commits mailing list