[PATCH] D143310: [llvm-readobj] Make relocations output valid JSON
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 08:39:36 PST 2023
paulkirth added inline comments.
================
Comment at: llvm/tools/llvm-readobj/ELFDumper.cpp:6641
+ std::stringstream DictName;
+ DictName << "Section (" << std::to_string(SecNdx) << ") " << Name.str();
+ DictScope D(W, DictName.str());
----------------
I’m not sure that this is the approach we should be going for with JSON output. Ideally we’d be providing better structure than the text output and not lumping things together like this.
My take for some relocs is here https://reviews.llvm.org/D137089. That builds on earlier work cleaning up and making changes to the json output. There’s about 7 patches in that stack so once you dig in you’ll find lots of things actually need fixing in the JSON output.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143310/new/
https://reviews.llvm.org/D143310
More information about the llvm-commits
mailing list