[DWARFYAML] Make the ExtLen field of extended opcodes optional.
authorXing GUO <higuoxing@gmail.com>
Thu, 24 Sep 2020 06:11:47 +0000 (14:11 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 24 Sep 2020 06:13:26 +0000 (14:13 +0800)
commit505ac22f1a1ada261280d979862d8af541016f77
tree6cf6fa4f1a5d8e2f3aa3b6629894053216a2031a
parentbeeceb92c082ce13807504b1e8f0567bf91d17ea
[DWARFYAML] Make the ExtLen field of extended opcodes optional.

This patch makes the 'ExtLen' field of extended opcodes optional. We
don't need to manually calculate it in the future.

Reviewed By: jhenderson, MaskRay

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