LTO: Do summary-based prevailing symbol resolution at --lto-O0.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 25 May 2017 23:40:11 +0000 (23:40 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 25 May 2017 23:40:11 +0000 (23:40 +0000)
commitf87197ad91857bd26948ada2215627b15889dfb0
tree1cc3c84b6f060172041809e1353b579232e73d75
parente2133d5b42684dc29dc53dc56ea70d60a1f51fbc
LTO: Do summary-based prevailing symbol resolution at --lto-O0.

Prevailing symbol resolution is necessary for correctness. Without
this we can end up dropping a referenced linkonce symbol from the link.

Differential Revision: https://reviews.llvm.org/D33570

llvm-svn: 303939
llvm/lib/LTO/LTO.cpp
llvm/test/LTO/Resolution/X86/linkonce.ll [new file with mode: 0644]