[PATCH] D88016: [llvm-readobj/libObject] - Get rid of `FirstSym` argument. NFCI.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 04:09:56 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: rupprecht.
Herald added a project: LLVM.
grimar requested review of this revision.

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.


https://reviews.llvm.org/D88016

Files:
  llvm/include/llvm/Object/ELF.h
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88016.293131.patch
Type: text/x-patch
Size: 13751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200921/25135113/attachment.bin>


More information about the llvm-commits mailing list