Don't run clang on .s files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51121 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index a1308da..5cb9151 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -122,6 +122,8 @@
return "objective-c"
elif extension == "mi":
return "objective-c-cpp-output"
+ elif extention == "s":
+ return "skip"
else:
return "unknown"
@@ -265,6 +267,9 @@
for i, file in enumerate(files):
if not language:
language = inferlanguage(extension(file))
+ if language == "skip":
+ continue
+
if save_temps and action != "compile":
# Need a temporary output file
coutput = changeextension(file, "o");