[DWARFYAML] Make the opcode_base and the standard_opcode_lengths fields optional.
authorXing GUO <higuoxing@gmail.com>
Fri, 9 Oct 2020 03:09:29 +0000 (11:09 +0800)
committerXing GUO <higuoxing@gmail.com>
Fri, 9 Oct 2020 03:10:03 +0000 (11:10 +0800)
commitdd554994729b6f97c0f3df3365b8b97a08d0a418
tree36d38a07bcedfda2d88389a9a271691f9e2a9044
parent1d1c1f8ff2c7f98e03b0e93740f969b0c1fed925
[DWARFYAML] Make the opcode_base and the standard_opcode_lengths fields optional.

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 line table's version.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D88355
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