[llvm-commits] [patch] Mark linkonce_odr unnamed_addr constants hidden

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jun 22 11:10:39 PDT 2012


Discussing a previous patch for LTO with Nick Kledzik I noticed that
part of it could be done more generally in GlobalOpt. The attached
patch marks as hidden inkonce_odr constants and functions that are
also unnamed_addr.

The linkonce_odr linkage guarantees that the symbol will be defined
anywhere it is needed. Being a constant and unnamed_addr guarantees
that we don't have to merge the symbols. Putting the two together
allows us to mark the symbol hidden.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120622/edce2aea/attachment.obj>


More information about the llvm-commits mailing list