Handle bitcode files in archive files with --whole-archive.
authorRui Ueyama <ruiu@google.com>
Tue, 23 Feb 2016 18:17:11 +0000 (18:17 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 23 Feb 2016 18:17:11 +0000 (18:17 +0000)
commitc89bff2ce1b58de373612b22f500456db3320deb
treeb9e90dc6b3762b72a90afd882af2eb9ad4e97bdd
parent4b3bb213b2d21d862542cfe1965fbd4cab28f1a8
Handle bitcode files in archive files with --whole-archive.

This patch moves BitcodeFile instantiation into createObjectFile.
Previously, we handle bitcode files outside that function and did
not handle for --whole-archive.

http://reviews.llvm.org/D17527

llvm-svn: 261663
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/Symbols.cpp
lld/test/ELF/lto/archive.ll