This changes makes since, but out of curiosity was it necessary? The driver should always call clang with -x.<div><br></div><div> - Daniel<br><br><div class="gmail_quote">On Mon, Mar 23, 2009 at 9:24 AM, Chris Lattner <span dir="ltr"><<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Author: lattner<br>
Date: Mon Mar 23 11:24:37 2009<br>
New Revision: 67532<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=67532&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=67532&view=rev</a><br>
Log:<br>
if the driver decides to run clang on a .s file, treat it as a .S file.<br>
<br>
Modified:<br>
cfe/trunk/Driver/clang.cpp<br>
<br>
Modified: cfe/trunk/Driver/clang.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=67532&r1=67531&r2=67532&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=67532&r1=67531&r2=67532&view=diff</a><br>
<br>
==============================================================================<br>
--- cfe/trunk/Driver/clang.cpp (original)<br>
+++ cfe/trunk/Driver/clang.cpp Mon Mar 23 11:24:37 2009<br>
@@ -322,7 +322,9 @@<br>
// assembler: .S<br>
if (Ext == "c")<br>
return langkind_c;<br>
- else if (Ext == "S")<br>
+ else if (Ext == "S" ||<br>
+ // If the compiler is run on a .s file, preprocess it as .S<br>
+ Ext == "s")<br>
return langkind_asm_cpp;<br>
else if (Ext == "i")<br>
return langkind_c_cpp;<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>