[PATCH] D85397: [DWARFYAML][debug_info] Make the 'Values' field optional.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 22:27:08 PDT 2020


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

This patch makes the 'Values' field optional. This is useful when we
handcraft the terminating entry of DIEs.

  debug_info:
    - Version:  4
      ...
      Entries:
        - AbbrCode: 1
          Values:
            - Value: 0x1234
        - AbbrCode: 0 ## Termination


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85397

Files:
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
  llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85397.283486.patch
Type: text/x-patch
Size: 5279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/14ee0174/attachment.bin>


More information about the llvm-commits mailing list