[llvm-commits] [patch][lto] Use MC to scan for symbol definitions and uses

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue Mar 1 19:25:18 PST 2011


On 2011-02-28 13:54, Rafael Avila de Espindola wrote:
> I have updated the patch to also create llvm.compiler.used with the uses
> it finds in inline assembly. This lets me build Firefox without moving
> the assembly to a .s file *or* adding __attribute__((used)) :-)

I incremented the patch a bit more. It now

*) Creates llvm.compiler.used, so that it is not necessary for the user
to add __attribute__((used)).
*) Handles IL uses that map to local asm definitions
*) Correctly mask symbols as defined (sets the section)

An unexpected but really nice benefit of this is that I can link firefox
with LTO on Darwin :-)

I am now confident that this is a strict superset of the previous
heuristic. Is it OK for 2.9?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asm-use.patch
Type: text/x-patch
Size: 23289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110301/8a3aecb3/attachment.bin>


More information about the llvm-commits mailing list