[ThinLTO] Appending linkage fixes
authorTeresa Johnson <tejohnson@google.com>
Thu, 3 Dec 2015 18:20:05 +0000 (18:20 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 3 Dec 2015 18:20:05 +0000 (18:20 +0000)
commit1c14f2864d7e7b87609c9d4c9b8295d0140ec978
tree0c7a231a823347aa6e0c9b672d4eed9f48065551
parent83c34652ffe9b368401aea98d9a4cc1ef6fa32d3
[ThinLTO] Appending linkage fixes

Summary:
Fix import from module with appending var, which cannot be imported. The
first fix is to remove an overly-aggressive error check.

The second fix is to deal with restructuring introduced to the module
linker yesterday in r254418 (actually, this fix was included already
in r254559, just added some additional cleanup).

Test by Mehdi Amini.

Reviewers: joker.eph, rafael

Subscribers: joker.eph, llvm-commits

Differential Revision: http://reviews.llvm.org/D15156

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/funcimport_appending_global.ll [new file with mode: 0644]
test/Linker/funcimport_appending_global.ll [new file with mode: 0644]