[PATCH] D21006: [Driver] Make -flto -S emit assembly

Rafael EspĂ­ndola via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 5 17:03:59 PDT 2016


OK, it prints assembly with ir in it. That doesn't apply to us since .BC is
not elf.

I guess we could just produce assembly. A .ll  cannot be used for lto.

So I guess this is OK, but please wait to see what others think.

Cheers,
Rafael
On Jun 5, 2016 7:45 PM, "Davide Italiano" <dccitaliano at gmail.com> wrote:

> davide added a comment.
>
> In http://reviews.llvm.org/D21006#449380, @rafael wrote:
>
> > Can you check what GCC does?
>
>
> Sure.
>
>   $ gcc flto.c -o flto.o -flto -S && cat flto.o |head -n 15
>         .file   "flto.c"
>         .section        .gnu.lto_.inline.513e7babbe55b1f8,"e", at progbits
>         .string "x\234ca\200"
>         .string "\021\006\004`d``af``b\371\240\307\300\302\300\004\026\003"
>         .ascii  "\020b\001K"
>         .text
>         .section        .gnu.lto_foo.513e7babbe55b1f8,"e", at progbits
>         .string
> "x\234eP\275J\003A\020\236o\346\210Q8\365\001R\244\t!\026>C\360\021|\005A\033\341\032\373\254\\\"QA,\242\210X\004LH\341O\022[\213\004\004\021\301\"\202\235EPQ\320&\207\212\225\2363I#8\260;3\314\3673\273\036\215b\016D\276\346\2245\036\201I\017Do\201\216\bT`A\001\237\374\315\350\025[\007\362\301%!x\332F7\373\217\223\326\002im_j[{\3105\234F\277^Inl\243$L1\023\216\221\302\021\314\002'\310)\264z\365v\351\313\004H\353\316m\271\346e\353Fs\347y7\256$\234B\376\362L\007Md\r\376\320\376\331\361\023EC\247M\\5[H\350\252\320a\377\375\372\"\2319t\256\354\334W\267\n\267\236\377\277\203B\333\3104\347\273.\216C\347\356\322\360"
>         .ascii
> "\223\347\241\021\rL\224\"\326$\317\bw\327\356\305,B\341P\314"
>         .ascii
> "\244\321\253lN\331\263\03138\033JF\254?&OX\235&\247\325\253~"
>         .ascii
> "\341\210aJ\003\326\355\264\032[\\^\tf\027H\226\202\340\027\253"
>         .ascii  "\277d'"
>         .text
>         .section
> .gnu.lto_.symbol_nodes.513e7babbe55b1f8,"e", at progbits
>         .string "x\234ca``\020\006b\006&\206z\006\206\t\347\030@
> \324\252FE\240\b"
>
>
> http://reviews.llvm.org/D21006
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160605/9189e342/attachment.html>


More information about the cfe-commits mailing list