llvm-project/llvm/lib
Pavel Labath dca2b36ba0 Re-commit "DWARF location lists: Add section index dumping"
This reapplies c0f6ad7d1f with an
additional fix in test/DebugInfo/X86/constant-loclist.ll, which had a
slightly different output on windows targets. The test now accounts for
this difference.

The original commit message follows.

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
2019-11-18 15:30:10 +01:00
..
Analysis [LoopCacheAnalysis]: Fix assertion failure during cost computation 2019-11-15 14:56:26 -05:00
AsmParser [IR] Redefine Freeze instruction 2019-11-12 10:49:00 +09:00
BinaryFormat Add read-only data assembly writing for aix 2019-11-15 11:30:19 -05:00
Bitcode Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Bitstream [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
CodeGen [SVE][CodeGen] Scalable vector MVT size queries 2019-11-18 12:30:59 +00:00
DebugInfo Re-commit "DWARF location lists: Add section index dumping" 2019-11-18 15:30:10 +01:00
Demangle [demangle] NFC: get rid of NodeOrString 2019-11-04 12:17:12 -08:00
ExecutionEngine Fix a build failure with perf: Add a missing include to llvm/Support/ManagedStatic.h 2019-11-16 14:43:46 +01:00
FuzzMutate [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
Fuzzer
IR [ConstantFold] Handle identity folds at top of ConstantFoldBinaryInst 2019-11-17 21:30:14 +00:00
IRReader
LTO Recommit "[ThinLTO] Add correctness check for RO/WO variable import" 2019-11-15 16:13:19 +03:00
LineEditor
Linker [IRMover] Set Address Space for moved global values 2019-11-05 16:32:48 -08:00
MC MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0. 2019-11-16 09:52:07 -05:00
MCA [MCA] Fix a spelling mistake in a comment. NFC 2019-10-27 10:06:22 +00:00
Object Revert "[XCOFF] Fix link errors from explicit template instantiation" 2019-11-07 09:39:13 -08:00
ObjectYAML [yaml2obj][COFF] Add support for extended relocation tables 2019-11-14 12:39:28 -08:00
Option [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
Passes [SVFS] Inject TLI Mappings in VFABI attribute. 2019-11-15 18:42:56 +00:00
ProfileData [profile] Add a mode to continuously sync counter updates to a file 2019-10-31 16:04:09 -07:00
Remarks Remarks - fix static analyzer warnings. NFCI. 2019-11-09 13:01:05 +00:00
Support Avoid duplicate exe_path definition on recent FreeBSD 2019-11-18 08:51:22 -05:00
TableGen TableGen - fix uninitialized variable warnings. NFCI. 2019-11-10 11:19:50 +00:00
Target [AMDGPU][MC][GFX10] Enabled v_movrel*[sdwa|dpp|dpp8] opcodes 2019-11-18 17:23:40 +03:00
Testing
TextAPI Reland "[TextAPI] Introduce TBDv4" 2019-10-10 04:24:44 +00:00
ToolDrivers [llvm-lib] Detect duplicate input files 2019-10-02 06:41:52 +00:00
Transforms [ARM,MVE] Add InstCombine rules for pred_i2v / pred_v2i. 2019-11-18 10:39:30 +00:00
WindowsManifest Fight a bit against global initializers. NFC. 2019-08-22 19:43:27 +00:00
XRay [llvm-xray] Add AArch64 to llvm-xray extract 2019-11-08 06:37:47 -08:00
CMakeLists.txt Fix build errors LLVM tests are disabled. 2019-07-11 22:08:35 +00:00
LLVMBuild.txt [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00