LTO: Don't follow lazy references when seeing new definitions in the combined LTO...
authorHans Wennborg <hans@hanshq.net>
Wed, 12 Oct 2016 09:00:06 +0000 (09:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 12 Oct 2016 09:00:06 +0000 (09:00 +0000)
commitcb8f2ef644df255196a78c8ea6981f38e9aa6f0c
tree7a6e2f108dd98d34a1051dc296d997a5c5288ee7
parent829c0eab91e413d2e036d82d4eb7360eb42c8d19
LTO: Don't follow lazy references when seeing new definitions in the combined LTO object

Following the lazy reference might bring in an object file that depends
on bitcode files that weren't part of the LTO step.

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

llvm-svn: 283989
lld/COFF/SymbolTable.cpp
lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll [new file with mode: 0644]
lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll [new file with mode: 0644]
lld/test/COFF/lto-lazy-reference.ll [new file with mode: 0644]