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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 11:50:57 PDT 2016


In gold we just change it to weak_odr.

On 26 April 2016 at 06:22, Mehdi AMINI via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>


More information about the llvm-commits mailing list