[PATCH] D19527: LTOCodeGenerator: add linkonce to llvm.used when in "MustPreserve" set

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 03:22:37 PDT 2016


joker.eph created this revision.
joker.eph added a reviewer: dexonsmith.
joker.eph added a subscriber: llvm-commits.
Herald added a subscriber: joker.eph.

If the linker requested to preserve a linkonce function, we should
honor this even if we drop all uses.

http://reviews.llvm.org/D19527

Files:
  lib/LTO/LTOCodeGenerator.cpp
  test/tools/lto/hide-linkonce-odr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19527.54980.patch
Type: text/x-patch
Size: 5029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160426/a1b38864/attachment.bin>


More information about the llvm-commits mailing list