Currently, outputting relocations using --relocs --expand-relocs in
llvm-readobj will produce invalid JSON since the section scopes are
outputted directly. This patch changes the section scopes to use a
DictScope which is automatically printed correctly by the
JSONScopedPrinter, making the JSON valid.
Regression test added.
oh, I just noticed this is a key ... We can't do this. There is no way to parse keys like this programmatically. I know the current output is broken, but I don't know if this is much of an improvement. It just papers over the underlying problem w/ JSON output, and introduces a new problem for consumers that isn't readily obvious.