[DWARFYAML][debug_abbrev] Make the abbreviation code optional.
authorXing GUO <higuoxing@gmail.com>
Thu, 18 Jun 2020 05:02:08 +0000 (13:02 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 18 Jun 2020 05:02:54 +0000 (13:02 +0800)
commitd261a1c0e0e5962ec1a42841692b47aca655e3a0
tree53456cedca92fde8954a22ef18af2c8125cc3a23
parent3d316eb06d91cd859f5da51715bab7ee3cae8bf0
[DWARFYAML][debug_abbrev] Make the abbreviation code optional.

This patch helps make the `Code` optional in abbreviations table.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D81826
llvm/include/llvm/ObjectYAML/DWARFYAML.h
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/test/ObjectYAML/MachO/DWARF-BigEndian.yaml
llvm/test/ObjectYAML/MachO/DWARF-LittleEndian.yaml
llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
llvm/test/ObjectYAML/MachO/DWARF5-abbrevValues.yaml
llvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml