[ObjectYAML][DWARF] Support emitting the .debug_aranges section in ELFYAML.
authorXing GUO <higuoxing@gmail.com>
Thu, 4 Jun 2020 00:53:40 +0000 (08:53 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 4 Jun 2020 00:56:00 +0000 (08:56 +0800)
commita50f4eb2e91bc384fb8956a9637abb7e46e7ec84
treef388b2fc35dfc4ea24fa1e791a274c593e750c9b
parente9f556526e57270d1f8e148e7f2be8cccf297eb2
[ObjectYAML][DWARF] Support emitting the .debug_aranges section in ELFYAML.

This patch enables yaml2obj to emit the .debug_aranges section in ELFYAML.

Known issues:
- The current implementation of `debug_aranges` doesn't support emitting `segment` in the `(segment, address, length)` tuple. I will fix it in a follow-up patch.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D80972
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-aranges.yaml [new file with mode: 0644]