[cfe-commits] r67532 - /cfe/trunk/Driver/clang.cpp

Chris Lattner sabre at nondot.org
Mon Mar 23 09:24:37 PDT 2009


Author: lattner
Date: Mon Mar 23 11:24:37 2009
New Revision: 67532

URL: http://llvm.org/viewvc/llvm-project?rev=67532&view=rev
Log:
if the driver decides to run clang on a .s file, treat it as a .S file.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=67532&r1=67531&r2=67532&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Mar 23 11:24:37 2009
@@ -322,7 +322,9 @@
   // 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;





More information about the cfe-commits mailing list