[PATCH] D137088: [llvm-readobj] Give JSON output a custom printSymbol
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 02:48:44 PST 2022
jhenderson added a comment.
In D137088#3979964 <https://reviews.llvm.org/D137088#3979964>, @paulkirth wrote:
> Also, part of the reason I set these patches aside for a while was that there is little testing for the JSON output, so I was trying to find a middle ground where we could only test that the formatting is correct without duplicating many of the LLVM formating tests. I didn't really find a nice way to do that. Do you have any recommendations as to how we could achieve that?
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.
Also, although I'm marked as Requesting Changes, as long as my most recent comments are addressed, I'm happy for this patch to be landed if someone else involved with llvm-readobj approves it (e.g. @MaskRay).
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