[all-commits] [llvm/llvm-project] 14f292: [llvm-readobj] Output valid JSON for GroupSections

Paul Kirth via All-commits all-commits at lists.llvm.org
Fri Mar 17 20:14:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14f292d00e26cb99909e4d192bc78d7e715ecc8c
      https://github.com/llvm/llvm-project/commit/14f292d00e26cb99909e4d192bc78d7e715ecc8c
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2023-03-18 (Sat, 18 Mar 2023)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/groups.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] Output valid JSON for GroupSections

The current implementation output the LLVM formatted heading for group
sections, which was not valid JSON. This patch provides two small
customization points that allow the heading to vary between the two
implementations, and another that allows the section members to be
output as valid JSON objects.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D137095




More information about the All-commits mailing list