]> granicus.if.org Git - llvm/commit
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)
commitc58f672ed11708770252f6e7fe7cc2289218c069
treedfc47858c596599dce12c7bfcb377da543235901
parentdcf3dde852d120809621ce4ca33f4225f53c78dc
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303939 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/LTO.cpp
test/LTO/Resolution/X86/linkonce.ll [new file with mode: 0644]