[all-commits] [llvm/llvm-project] fc9844: [llvm-readobj] - Do not skip building of the GNU h...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed May 27 03:47:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fc98447af65f5a51d3b62a7e76a056d2556be59d
      https://github.com/llvm/llvm-project/commit/fc98447af65f5a51d3b62a7e76a056d2556be59d
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

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

  Log Message:
  -----------
  [llvm-readobj] - Do not skip building of the GNU hash table histogram.

When the `--elf-hash-histogram` is used, the code first tries to build
a histogram for the .hash table and then for the .gnu.hash table.

The problem is that dumper might return early when unable or do not need to
build a histogram for the .hash.

This patch reorders the code slightly to fix the issue and adds a test case.

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




More information about the All-commits mailing list