[llvm-commits] new .file directive

Nick Lewycky nlewycky at google.com
Fri Oct 14 19:09:29 PDT 2011


[+cfe-commits because there's now a clang patch involved too.]

On 14 October 2011 13:56, Eric Christopher <echristo at apple.com> wrote:

>
> On Oct 14, 2011, at 1:12 PM, Nick Lewycky wrote:
>
> Does anybody really, really care about the .s format emitted by clang/llc
> staying compatible with older assemblers? If so, do you have a suggestion
> for how we should go about maintaining compatibility?
>
>
> Given all of the whining we get about not supporting someone's ancient this
> or that… a bit.
>
> The standard way to do this would be an autoconf check to see if it
> successfully assembles the file directive.
>

I've gone ahead and implemented control for this just like the CFI
directives. It turns off with -no-integrated-as or -fno-dwarf-directory-asm
on clang, or with -disable-dwarf-directory on llc. The
-fno-dwarf-directory-asm flag is ignored when emitting .o files directly.

Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111014/92a668e6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-file-directive.patch
Type: text/x-patch
Size: 26572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111014/92a668e6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-file-directive.patch
Type: text/x-patch
Size: 6079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111014/92a668e6/attachment-0001.bin>


More information about the llvm-commits mailing list