[all-commits] [llvm/llvm-project] e75efc: [llvm-readobj] - Improve error reporting for hash ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Jun 1 02:44:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e75efcc3c1af068a145ea83deb0435b195a44162
      https://github.com/llvm/llvm-project/commit/e75efcc3c1af068a145ea83deb0435b195a44162
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-06-01 (Mon, 01 Jun 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/hash-table.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Improve error reporting for hash tables.

This improves the next points for broken hash tables:

1) Use reportUniqueWarning to prevent duplication when
   --hash-table and --elf-hash-histogram are used together.

2) Dump nbuckets and nchain fields. It is often possible
   to dump them even when the table itself goes past the EOF etc.

Differential revision: https://reviews.llvm.org/D80373




More information about the All-commits mailing list