]> granicus.if.org Git - clang/commitdiff
if the driver decides to run clang on a .s file, treat it as a .S file.
authorChris Lattner <sabre@nondot.org>
Mon, 23 Mar 2009 16:24:37 +0000 (16:24 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Mar 2009 16:24:37 +0000 (16:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67532 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 160c252304972f9bf128dd2d2613fb6b2ff55e5d..2ae1b6ec7377d2019b6b314c396e865ea16b6f22 100644 (file)
@@ -322,7 +322,9 @@ static LangKind GetLanguage(const std::string &Filename) {
   // assembler: .S
   if (Ext == "c")
     return langkind_c;
-  else if (Ext == "S")
+  else if (Ext == "S" ||
+           // If the compiler is run on a .s file, preprocess it as .S
+           Ext == "s")
     return langkind_asm_cpp;
   else if (Ext == "i")
     return langkind_c_cpp;