[all-commits] [llvm/llvm-project] aa123b: [llvm-readobj] Improve JSON output
Paul Kirth via All-commits
all-commits at lists.llvm.org
Mon Oct 17 09:43:15 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa123b8c096cc75100f7d87c9cfcc7afaa03cfd1
https://github.com/llvm/llvm-project/commit/aa123b8c096cc75100f7d87c9cfcc7afaa03cfd1
Author: Paul Kirth <paulkirth at google.com>
Date: 2022-10-17 (Mon, 17 Oct 2022)
Changed paths:
M llvm/docs/ReleaseNotes.rst
M llvm/test/tools/llvm-readobj/ELF/file-summary-json.test
M llvm/test/tools/llvm-readobj/ELF/pretty-print.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readobj] Improve JSON output
The current implementation outputs JSON in the following way:
[{'<filename>':{'FileSummary':{},...}}]
Using the filename as a key makes processing the JSON data awkward, and
should be avoided. This patch removes that outer key, since the
'FileSummary' data also includes a 'File' field, and so we lose no data.
Reviewed By: jhenderson, leonardchan
Differential Revision: https://reviews.llvm.org/D134843
More information about the All-commits
mailing list