[DWARFYAML][debug_ranges] Emit an error message for invalid offset.
authorXing GUO <higuoxing@gmail.com>
Tue, 9 Jun 2020 10:52:14 +0000 (18:52 +0800)
committerXing GUO <higuoxing@gmail.com>
Tue, 9 Jun 2020 10:53:38 +0000 (18:53 +0800)
commite4344e1466420e3f17b268916558249d5f1b8f49
treef7e8d214a3226b4c5e6682ba041437ab2dc5aca5
parent658af9435071d5da017c1d65298bdea19ec095e1
[DWARFYAML][debug_ranges] Emit an error message for invalid offset.

This patch helps make yaml2obj emit an error message when we try to assign an invalid offset to the entry of the 'debug_ranges' section.

Reviewed By: jhenderson

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