[PATCH] D96289: Add support for YAML output style to llvm-symbolizer
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 16 10:48:23 PST 2021
dblaikie added a comment.
In D96289#2564889 <https://reviews.llvm.org/D96289#2564889>, @jhenderson wrote:
> In D96289#2563945 <https://reviews.llvm.org/D96289#2563945>, @MaskRay wrote:
>
>> The two cover the spectrum I can think of. If really we need an interchange format (I have some doubts, after asking others, so it is not my own opinion), JSON seems a better choice.
>
> Having given it more thought, +1 to using JSON over YAML. JSON has the advantage that it can be consumed directly by native python, without needing additional modules, and python is a regular choice for people writing scripts to parse output like this.
Given we already have YAML APIs in LLVM, there's some convenience/reduced cost (for perhaps an already marginal use case, I'd rather keep the code complexity lower - and this seems pretty low at the moment) to sticking with that, I think? Or is there some equivalently tidy way to emit JSON?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96289/new/
https://reviews.llvm.org/D96289
More information about the llvm-commits
mailing list