[lto] Make sure that ctors are added to the combined module.
authorSean Silva <chisophugis@gmail.com>
Fri, 11 Mar 2016 00:50:05 +0000 (00:50 +0000)
committerSean Silva <chisophugis@gmail.com>
Fri, 11 Mar 2016 00:50:05 +0000 (00:50 +0000)
commitb1b5cc83f1090f91a320b079282e22df2ea77ad5
tree65a470a37e54987fd4be0711011700eeb9c341a2
parente8f5dded0d822c91a5bce5824d3c478cc3653fe3
[lto] Make sure that ctors are added to the combined module.

Summary:
More generally, appending linkage is a special case that we don't want
to create a SymbolBody for.

Reviewers: rafael, ruiu

Subscribers: Bigcheese, llvm-commits, joker.eph

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

llvm-svn: 263179
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/ELF/SymbolTable.cpp
lld/test/ELF/lto/ctors.ll [new file with mode: 0644]