[PATCH] D85506: [macho2yaml] Refactor the DWARF section dumpers.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 00:55:33 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay, alexshap.
Herald added subscribers: llvm-commits, hiraditya, aprantl.
Herald added a project: LLVM.
Higuoxing requested review of this revision.

This patch refactors the DWARF section dumpers. When dumping a DWARF
section, if the DWARF parser fails to parse the section, we will dump it
as a raw content section. This patch also fixes a bug in
DWARFYAML::Data::isEmpty(). Finally, a test case that tests dumping the
__debug_aranges section is added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85506

Files:
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/test/ObjectYAML/MachO/DWARF-pubsections.yaml
  llvm/test/tools/obj2yaml/MachO/DWARF-debug_aranges-error.yaml
  llvm/test/tools/obj2yaml/MachO/debug-aranges.yaml
  llvm/tools/obj2yaml/dwarf2yaml.cpp
  llvm/tools/obj2yaml/macho2yaml.cpp
  llvm/tools/obj2yaml/obj2yaml.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85506.283831.patch
Type: text/x-patch
Size: 26180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200807/b5f6ec0f/attachment.bin>


More information about the llvm-commits mailing list