Add .debug_ranges support to the DWARF YAML.
authorGreg Clayton <gclayton@fb.com>
Fri, 24 Apr 2020 02:25:12 +0000 (19:25 -0700)
committerGreg Clayton <gclayton@fb.com>
Wed, 13 May 2020 23:21:45 +0000 (16:21 -0700)
commit6025fc2243c6b7c00f07bdadcea6658e1b63518a
treee0789bee106b9f56524ffd72ddde86475f16ae45
parent3254a001fc23e87c4ba3c544beb860cacddaee12
Add .debug_ranges support to the DWARF YAML.

Summary: This allows DIEs with DW_AT_ranges to be encoded and decoded _and_ actually have their address ranges be included instead of having DW_AT_ranges with a section offset value for a section that doesn't exist.

Reviewers: labath, aprantl, JDevlieghere, dblaikie, probinson

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78782
llvm/include/llvm/ObjectYAML/DWARFEmitter.h
llvm/include/llvm/ObjectYAML/DWARFYAML.h
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/lib/ObjectYAML/MachOEmitter.cpp
llvm/test/tools/obj2yaml/macho-DWARF-debug-ranges.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/dwarf2yaml.cpp