[DWARFYAML][debug_ranges] Make the "Offset" field optional.
authorXing GUO <higuoxing@gmail.com>
Thu, 11 Jun 2020 00:36:06 +0000 (08:36 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 11 Jun 2020 00:36:44 +0000 (08:36 +0800)
commit99c23354340c5c85e162cf244b8e92218074d854
tree183c6f82de710f5eb4d407649307bee71389f6ef
parent502a2a80c2bfcfffe41356c9c35e1aaecea57ef0
[DWARFYAML][debug_ranges] Make the "Offset" field optional.

Before this patch, we have to calculate the offset for the current range list entry. This patch helps make the "Offset" field optional.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D81220
llvm/include/llvm/ObjectYAML/DWARFYAML.h
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-ranges.yaml