[lto] Don't add variables with private linkage to the symbol table.
authorSean Silva <chisophugis@gmail.com>
Tue, 8 Mar 2016 23:50:56 +0000 (23:50 +0000)
committerSean Silva <chisophugis@gmail.com>
Tue, 8 Mar 2016 23:50:56 +0000 (23:50 +0000)
commitb284e71e03bf8d5a5274e68b4e4faba3b764af64
tree4b5145d4c3b8ecdb25380405906a69192a6e5f04
parentbbbe6184678e6c0c159cfff1f24c95508a7708fa
[lto] Don't add variables with private linkage to the symbol table.

Summary:
This causes the issue in PR26872 to go away now that we aren't creating
symbols for the string literals, but that may just be concealing a
deeper problem, so best to keep that PR open.

Reviewers: rafael

Subscribers: Bigcheese, llvm-commits, joker.eph

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

llvm-svn: 262968
lld/ELF/InputFiles.cpp
lld/test/ELF/lto/linkage.ll [new file with mode: 0644]