[PATCH] D72843: [llvm-readelf][llvm-readobj] - Fix the indentation when printing dynamic tags.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 07:02:04 PST 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.

This change is similar to one made for llvm-objdump in D72838 <https://reviews.llvm.org/D72838>.

llvm-readelf/llvm-readobj tools do not align the "Name/Value" column properly.
This patch adds a logic to calculate the size of indentation on fly
to fix such issues.


https://reviews.llvm.org/D72843

Files:
  llvm/test/tools/llvm-readobj/ELF/dynamic-tags-machine-specific.test
  llvm/test/tools/llvm-readobj/ELF/dynamic-tags.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72843.238487.patch
Type: text/x-patch
Size: 35446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/2a1166ad/attachment-0001.bin>


More information about the llvm-commits mailing list