[llvm-commits] [patch] print ".file" directives

Evan Cheng evan.cheng at apple.com
Mon Dec 1 11:39:25 PST 2008


Ok if the .file directive is universally accepted by all assemblers. I  
suspect not though since TargetAsmInfo has a HasDotLocAndDotFile field.

Evan

On Nov 28, 2008, at 7:31 AM, Rafael Espindola wrote:

> The attached patch fixes bug 3140 by printing the module name in the
> .file directive. This adds very minimal debug info for the simple case
> of a C (or C++) file compile one at a time.
>
> The only thing I am not sure about is if it is always safe to add the
> .file directive. I have tried on linux (GNU assembler version 2.18.0),
> and darwin ppc (cctools-622.9~2, GNU assembler version 1.38). Can
> someone with another assembler check if it is OK?
>
> Thanks,
> -- 
> Rafael Avila de Espindola
>
> Google | Gordon House | Barrow Street | Dublin 4 | Ireland
> Registered in Dublin, Ireland | Registration Number: 368047
> <file.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list