[PATCH] D68270: DWARFDebugLoc: Add a function to get the address range of an entry
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 05:22:19 PDT 2019
labath updated this revision to Diff 223193.
labath added a comment.
Upload a new version of the patch.
This isn't fully ready for submission, but I am putting it up anyway, to get
some feedback on the direction I am taking this, and ask some questions.
First I tried to do a complete rewrite of the loclists class in a manner similar
to the rnglists parser, but then I ran into the problem called .debug_loc.dwo
(v4 extension vaguely similar to DWARF5 loclists). Right now, it is possible to
share the parsing code between this format and .debug_loclists. That would be
pretty tricky to do with the rnglists approach.
So, instead I went for a bottom-up approach and tried to rewrite/reuse/make
similar the lower level classes, which can be shared more easily with the
rnglists stuff. This patch creates a DWARFLocation class, which is based on the
existing DWARFAddressRange class. The next step would be (or maybe I'll land it
before this patch) a LocationListEntry class akin to the existing
RangeListEntry.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68270/new/
https://reviews.llvm.org/D68270
Files:
include/llvm/BinaryFormat/Dwarf.h
include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
lib/BinaryFormat/Dwarf.cpp
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
lib/DebugInfo/DWARF/DWARFDie.cpp
test/CodeGen/X86/debug-loclists.ll
test/DebugInfo/X86/dwarfdump-debug-loclists-error-cases2.s
test/DebugInfo/X86/dwarfdump-debug-loclists.test
test/DebugInfo/X86/fission-ranges.ll
test/DebugInfo/X86/loclists-dwp.ll
test/tools/llvm-dwarfdump/X86/debug_loc_dwo.s
test/tools/llvm-dwarfdump/X86/debug_loclists_startx_length.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68270.223193.patch
Type: text/x-patch
Size: 27129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191004/b2c21099/attachment.bin>
More information about the llvm-commits
mailing list