diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-28 00:14:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-28 00:14:21 +0000 |
commit | 3386c8a510abc6f55ce25ef5e22c72e5d0c47a70 (patch) | |
tree | 2b2ff64864660e8ada74ef0331fe93dc7546206d | |
parent | b7c515226e91848c7197fd0b9e198fce70ba5893 (diff) |
Only generate preprocessed files during crashes using Clang, not GCC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 6355abcd19..73cc47b6ef 100755 --- a/utils/ccc-analyzer +++ b/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"; |