[llvm-readobj/elf] - Don't fail when dumping an archive with a member that can't...
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 28 Aug 2020 10:33:20 +0000 (13:33 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 31 Aug 2020 10:16:15 +0000 (13:16 +0300)
commit506f89ce914e99233a66fee8c1ec070b668d1759
tree698e661661caeb78c21d8b4727c929b35e91ee1b
parented89eb3571e16307c16d2e5371855437835a40cc
[llvm-readobj/elf] - Don't fail when dumping an archive with a member that can't be recognized.

Imagine we have an archive that has 3 objects in the following order:
<valid known object>,<unknown object> and <valid known object>.

Currently llvm-readelf/obj report an error and stops dumping in the middle.
This patch changes the error reported to warning.

Differential revision: https://reviews.llvm.org/D86771
llvm/test/tools/llvm-readobj/archive.test
llvm/tools/llvm-readobj/llvm-readobj.cpp