summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-28 00:14:21 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-28 00:14:21 +0000
commit0799d4f0bbad670f30bfe2b64aa6226c8dd848ec (patch)
tree38ce911d505f651a4194a60e0c01a6ba77f41b7a /clang/utils
parent4c9f161fd52090c3956b2eadcfc32ed225b4a75e (diff)
downloadbcm5719-llvm-0799d4f0bbad670f30bfe2b64aa6226c8dd848ec.tar.gz
bcm5719-llvm-0799d4f0bbad670f30bfe2b64aa6226c8dd848ec.zip
Only generate preprocessed files during crashes using Clang, not GCC.
llvm-svn: 77281
Diffstat (limited to 'clang/utils')
-rwxr-xr-xclang/utils/ccc-analyzer10
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/utils/ccc-analyzer b/clang/utils/ccc-analyzer
index 6355abcd192..73cc47b6ef7 100755
--- a/clang/utils/ccc-analyzer
+++ b/clang/utils/ccc-analyzer
@@ -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";
OpenPOWER on IntegriCloud