[all-commits] [llvm/llvm-project] 40506d: [DWARFYAML][debug_info] Make the 'Values' field op...

Xing GUO via All-commits all-commits at lists.llvm.org
Thu Aug 6 05:44:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 40506d5e2fc5fb47badcb79a8ad9242c3bce60f3
      https://github.com/llvm/llvm-project/commit/40506d5e2fc5fb47badcb79a8ad9242c3bce60f3
  Author: Xing GUO <higuoxing at gmail.com>
  Date:   2020-08-06 (Thu, 06 Aug 2020)

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

  Log Message:
  -----------
  [DWARFYAML][debug_info] Make the 'Values' field optional.

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
```

Reviewed By: jhenderson, grimar

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




More information about the All-commits mailing list