[PATCH] D87086: [llvm-readobj/elf] - Refine signature of print*Reloc methods.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 06:19:07 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
grimar requested review of this revision.

This makes the interface cleaner and slightly improves messages
reported.

I need it for another patch that is going to reuse
virtual print*Reloc methods for printing dynamic relocations.
(in that case the `const Elf_Shdr *Sec` argument introduced
instead of `unsigned SecIndex` will be nullptr).


https://reviews.llvm.org/D87086

Files:
  llvm/test/tools/llvm-readobj/ELF/relocation-errors.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87086.289698.patch
Type: text/x-patch
Size: 13045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200903/f0f51c32/attachment-0001.bin>


More information about the llvm-commits mailing list