[all-commits] [llvm/llvm-project] 506f89: [llvm-readobj/elf] - Don't fail when dumping an ar...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Aug 31 03:16:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 506f89ce914e99233a66fee8c1ec070b668d1759
      https://github.com/llvm/llvm-project/commit/506f89ce914e99233a66fee8c1ec070b668d1759
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-31 (Mon, 31 Aug 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/archive.test
    M llvm/tools/llvm-readobj/llvm-readobj.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list