[PATCH] D137088: [llvm-readobj] Give JSON output a custom printSymbol

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 10:45:31 PST 2022


paulkirth added a comment.

@jhenderson Thanks for the feedback, and the notification re: time of work. I'm looking into your suggested approach now. The duplication also bothered me, but I also saw several other places where the output should diverge. I'll take a closer look at this, now that I've sketched out how to fix the JSON formatting for most of the problems I've found, and see if there is a nicer way to modify the output only when they diverge.

In D137088#3984007 <https://reviews.llvm.org/D137088#3984007>, @jhenderson wrote:

> I didn't respond to this directly, but just noting that as far as I'm concerned, if both LLVM and JSON styles use the same code, you only need to test one or the other. You only need to add additional testing where behaviour follows a different code path.

That is good to know. Thank you for clarifying. I'll try to keep that in mind as this stack evolves.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137088/new/

https://reviews.llvm.org/D137088



More information about the llvm-commits mailing list