[all-commits] [llvm/llvm-project] df3e90: [llvm-readobj/libObject] - Get rid of `FirstSym` a...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Sep 21 06:08:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: df3e903655e2499968fc7af64fb5fa52b2ee79bb
      https://github.com/llvm/llvm-project/commit/df3e903655e2499968fc7af64fb5fa52b2ee79bb
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-09-21 (Mon, 21 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Object/ELF.h
    M llvm/tools/llvm-readobj/ELFDumper.cpp

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




More information about the All-commits mailing list