[PATCH] D88355: [DWARFYAML] Make the opcode_base and the standard_opcode_lengths fields optional.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 05:19:40 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay, labath.
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 opcode_base and the standard_opcode_lengths fields
of the line table optional. When both of them are not specified,
yaml2obj emits them according to the DWARFv4 spec (opcode_base=13 and
the array of standard_opcode_lengths is [0, 1, 1, 1, 1, 0, 0, 0, 1,
0, 0, 1]). Though the spec mentions that there are 9 standard opcodes in
DWARFv2, yaml2obj still emits them according to the DWARFv4 spec by
default.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88355

Files:
  llvm/include/llvm/ObjectYAML/DWARFYAML.h
  llvm/lib/ObjectYAML/DWARFEmitter.cpp
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-line.yaml
  llvm/tools/obj2yaml/dwarf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88355.294491.patch
Type: text/x-patch
Size: 10933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200926/bbc84e0d/attachment.bin>


More information about the llvm-commits mailing list