[PATCH] D114225: Add JSONScopedPrinter to llvm-readelf

Jayson Yan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 18 23:06:07 PST 2021


Jaysonyan created this revision.
Jaysonyan added reviewers: leonardchan, phosek, jhenderson.
Herald added subscribers: rupprecht, emaste.
Jaysonyan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

This change adds `JSONScopedPrinter` to `llvm-readelf`. It includes an empty `JSONELFDumper` class which will be used to override any `LLVMELFDumper` methods which utilize `startLine()` which `JSONScopedPrinter` cannot provide.

This change is split from D114052 <https://reviews.llvm.org/D114052> and builds off of D114224 <https://reviews.llvm.org/D114224>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114225

Files:
  llvm/test/tools/llvm-readobj/ELF/output-style.test
  llvm/tools/llvm-readobj/ELFDumper.cpp
  llvm/tools/llvm-readobj/llvm-readobj.cpp
  llvm/tools/llvm-readobj/llvm-readobj.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114225.388399.patch
Type: text/x-patch
Size: 4477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211119/879fe2fb/attachment.bin>


More information about the llvm-commits mailing list