ThinLTOCodeGenerator: preserve linkonce when in "MustPreserved" set
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 26 Apr 2016 10:35:01 +0000 (10:35 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 26 Apr 2016 10:35:01 +0000 (10:35 +0000)
commitaa309b1a81e669ee80754ed0fe2d30dc32bfb6ad
tree3b6e97718270aca2c975d0c6554801d49b5b48ec
parent6e2f32c56123d5ab83051ef8641a8f7d3db505be
ThinLTOCodeGenerator: preserve linkonce when in "MustPreserved" set

If the linker specifically requested for a linkonce to be preserved,
we need to make sure we won't drop it even if all the uses in the
current module disappear.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 267543
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/test/ThinLTO/X86/odr_resolution.ll