SuccessChanges

Summary

  1. DWARF location lists: Add section index dumping (details)
Commit c0f6ad7d1f3ccb9d0b9ce9ef8dfa06409ccf1b3e by pavel
DWARF location lists: Add section index dumping
Summary: As discussed in D70081, this adds the ability to dump section
names/indices to the location list dumper. It does this by moving the
range specific logic from DWARFDie.cpp:dumpRanges into the
DWARFAddressRange class.
The trickiest part of this patch is the backflip in the meanings of the
two dump flags for the location list sections.
The dumping of "raw" location list data is now controlled by
"DisplayRawContents" flag. This frees up the "Verbose" flag to be used
to control whether we print the section index. Additionally, the
DisplayRawContents flag is set for section-based dumps whenever the
--verbose option is passed, but this is not done for the "inline" dumps.
Also note that the index dumping currently does not work for the DWARF
v5 location lists, as the parser does not fill out the appropriate
fields. This will be done in a separate patch.
Reviewers: dblaikie, probinson, JDevlieghere, SouraVX
Subscribers: sdardis, hiraditya, jrtc27, atanasyan, arphaman, aprantl,
llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70227
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
The file was modifiedllvm/test/DebugInfo/Mips/dsr-fixed-objects.ll
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFAddressRange.cpp
The file was modifiedllvm/test/DebugInfo/X86/DW_AT_location-reference.ll
The file was modifiedllvm/test/CodeGen/X86/debug-loclists.ll
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
The file was modifiedllvm/test/DebugInfo/X86/dbg-value-frame-index.ll
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDie.cpp
The file was modifiedllvm/test/DebugInfo/X86/debug-loc-offset.mir
The file was modifiedllvm/test/DebugInfo/X86/dbg-value-regmask-clobber.ll
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFContext.cpp
The file was modifiedllvm/test/DebugInfo/ARM/PR26163.ll
The file was modifiedllvm/test/DebugInfo/X86/debug-loc-frame.ll