[Linker] PR33527 - Linker::LinkOnlyNeeded should import AppendingLinkage globals
authorBenoit Belley <benoit.belley@autodesk.com>
Wed, 9 Aug 2017 20:58:39 +0000 (20:58 +0000)
committerBenoit Belley <benoit.belley@autodesk.com>
Wed, 9 Aug 2017 20:58:39 +0000 (20:58 +0000)
commitb1a9ad81c5d4850acd5429b03f59c4e7b6fe3466
tree166e140d804538b791921b7dab8799a32d9003f7
parent0284a20fbafae760a21aca9fde47efbec9f6afcb
[Linker] PR33527 - Linker::LinkOnlyNeeded should import AppendingLinkage globals

Linker::LinkOnlyNeeded should always import globals with
AppendingLinkage.

This resolves PR33527.

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

llvm-svn: 310522
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/Inputs/only-needed-compiler-used.ll [new file with mode: 0644]
llvm/test/Linker/Inputs/only-needed-ctors.ll [new file with mode: 0644]
llvm/test/Linker/Inputs/only-needed-dtors.ll [new file with mode: 0644]
llvm/test/Linker/Inputs/only-needed-used.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-compiler-used.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-ctors1.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-ctors2.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-dtors1.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-dtors2.ll [new file with mode: 0644]
llvm/test/Linker/only-needed-used.ll [new file with mode: 0644]