]> granicus.if.org Git - clang/commitdiff
Only generate preprocessed files during crashes using Clang, not GCC.
authorTed Kremenek <kremenek@apple.com>
Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 6355abcd192be0f7ad48db6e71edd3511156a5ae..73cc47b6ef799cfb2a39975a181215c99d02324a 100755 (executable)
@@ -61,18 +61,12 @@ sub ProcessClangFailure {
     $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";