[llvm-readobj] - Split the printGnuHashTable(). NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 16 Jun 2020 11:35:05 +0000 (14:35 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 17 Jun 2020 11:13:51 +0000 (14:13 +0300)
commite8299a806ad197d64a627c1868b842256f464035
tree833ff57c13d7e02e21d470ced70977309ce62bf9
parentac8a2f132b010f92e4094b302c87e4f55d1a4458
[llvm-readobj] - Split the printGnuHashTable(). NFCI.

`printGnuHashTable` contains the code to check the GNU hash table.
This patch splits it to `getGnuHashTableChains` helper
(and reorders slightly to reduce).

Differential revision: https://reviews.llvm.org/D81928
llvm/tools/llvm-readobj/ELFDumper.cpp