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

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sat Feb 26 07:49:38 PST 2011


The attached patch changes LTO to use MC for scanning symbol definitions
and uses. It is not as complete as it could be, but it already handles
some interesting cases:

* A single .globl produces an undefined reference
* Uses with no definitions produce undefined references
* Definitions are correctly tracked as being local or global
* Macro expansions are handled correctly :-)

The patch also changes LLVM's handling of module level asm to make sure
it always ends in a new line. This makes it easy to just pass that
string to MC and match what we would see if printing to a file.

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


More information about the llvm-commits mailing list