Improve error check for an empty archive.
authorRui Ueyama <ruiu@google.com>
Fri, 30 Sep 2016 17:56:20 +0000 (17:56 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 30 Sep 2016 17:56:20 +0000 (17:56 +0000)
commit3d0f77b28193224fc33059a2b034000418fc4d1c
tree2b465ccf2fa5de09c3e7d89a62396bb5482ea65e
parent14a5ca0498552a4ae3e9b99cb339dcffac6a5a12
Improve error check for an empty archive.

Previously, it warned on any archive file that has no symbol.
It turned out that that is too noisy.

With this patch, it warns on such archive file that contains no file.

Differential Revision: https://reviews.llvm.org/D25111

llvm-svn: 282885
lld/ELF/InputFiles.cpp
lld/test/ELF/empty-archive.s
lld/test/ELF/lto/archive.ll