[lto] Avoid duplicate symbol error for appending linkage.
authorSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 03:42:39 +0000 (03:42 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 03:42:39 +0000 (03:42 +0000)
commit7255d0b0681fadd1df592e79f11e5a5f02e9a4fe
tree5190f3244c44fb8a94f93323309dc9ef8788f626
parent96e147932684ac9b3a9845a74cf02273bfa98ae3
[lto] Avoid duplicate symbol error for appending linkage.

Summary:
Is there any other code needed for correctly handling appending linkage?
Do we need to do something more with @llvm.global_ctors in
SymbolTable.cpp:addBitcodeFile; otherwise the combined bitcode module
won't have all the global ctors.

Reviewers: rafael

Subscribers: Bigcheese, llvm-commits, joker.eph

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

llvm-svn: 262992
lld/ELF/InputFiles.cpp
lld/test/ELF/lto/linkage.ll