[llvm-commits] [PATCH] Updated lazily link patch

Tanya Lattner lattner at apple.com
Mon Oct 31 15:48:56 PDT 2011


Updated the patch with Peter's suggested changes. If there are no other comments, I'll commit.

-Tanya

The attached patch will only link functions marked with specific linkage (internal, private, linker_private, linker_private_weak, linker_private_weak_def_auto, linkonce, linkonce_odr, and available_externally) if they have uses in the destination module. Instead of automatically linking, these functions are placed onto a worklist to be processed in the final stage of linking. We iterate over the list and if any functions on the list have uses in the destination module, we link them in and repeat the process until no changes in the state (uses) has changed. This means that any functions in the LazilyLink worklist that have a use in the destination module will be linked in and none that don't. 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: LazyLink2.patch
Type: application/octet-stream
Size: 2650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111031/56add0ea/attachment.obj>


More information about the llvm-commits mailing list