[llvm-commits] [patch] Switch LTO to use MC

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Wed Feb 23 20:22:19 PST 2011


I was updating my patch for disabling .globl matching on ELF targets and
decided I should at least try to see how hard it would be to implement
the proper solution with MC.

The first step is probably to switch LTO to use MC. It wouldn't make a
lot of sense to have LTO require MC for finding definitions and then
passing assembly to 'as'.

The attached patch converts LTO to using MC for object emission. It
simplifies the code a lot, since now all the assembler logic is in LLVM
itself. It also has a nice impact on performance. With the patch
libxul.so now links in 6m30, which is about 30s less than before :-)

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lto-mc.patch
Type: text/x-patch
Size: 9586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110223/9a6b9350/attachment.bin>


More information about the llvm-commits mailing list