[llvm-readobj/libObject] - Get rid of `FirstSym` argument. NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 21 Sep 2020 11:00:42 +0000 (14:00 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 21 Sep 2020 13:07:50 +0000 (16:07 +0300)
commitdf3e903655e2499968fc7af64fb5fa52b2ee79bb
treed42df4de3660a65edd4f8ba43c2c1578be50a3c9
parent82042a2c9b2330cfb4621322474448567c52f7b6
[llvm-readobj/libObject] - Get rid of `FirstSym` argument. NFCI.

We use `FirstSym` argument in `getExtendedSymbolTableIndex` to calculate
a symbol index:

```
&Sym - &FirstSym
```

Instead, we could pass the symbol index directly.
This is what this patch does, it allows to simplify another llvm-readobj API.

Differential revision: https://reviews.llvm.org/D88016
llvm/include/llvm/Object/ELF.h
llvm/tools/llvm-readobj/ELFDumper.cpp