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

Daniel Dunbar daniel at zuster.org
Mon Mar 23 12:23:24 PDT 2009


This changes makes since, but out of curiosity was it necessary? The driver
should always call clang with -x.
 - Daniel

On Mon, Mar 23, 2009 at 9:24 AM, Chris Lattner <sabre at nondot.org> wrote:

> 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;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090323/8eca100a/attachment.html>


More information about the cfe-commits mailing list