[llvm] r193718 - Produce .weak_def_can_be_hidden for some linkonce_odr values

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Nov 1 07:03:28 PDT 2013

> In the message where you gave the count of symbols, you said you had built with xcode 5 tools.  On MacOSX you can run:
>    nm -m <binary> | grep "weak external" | wc -l
> to get the count of weak external symbols in binary.  (On darwin, weak external symbols are much more expensive the other symbols).

On the old binary "nm -m bin/clang | grep "weak external" | grep -v
"\(undefined\)"  | wc -l" prints 2677. On the new binary 426.

The list of the new binary is attached. The difference from the LTO
list is just the weak_odr symbols. Doing

grep 'define linkonce_odr\|define weak_odr\|= weak_odr '

on the combined .ll file found 422 GlobalValues.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: list
Type: application/octet-stream
Size: 47102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131101/8bde7fd0/attachment.obj>

More information about the llvm-commits mailing list