llvm-project/llvm/test/tools
Pavel Labath 4ee76a922a [llvm/DWARF] Return section offset from DWARFUnit::get{Loc,Rng}listOffset
Summary:
Currently these function return the raw content of the appropriate table
header, which means they are relative to the DW_AT_{loc,rng}list_base,
and one has to relocate them in order to do anything.

This changes the functions to perform the relocation themselves, which
seems more clearer, particularly as they are sitting right next to the
find{Rng,Loc}listFromOffset functions, but one *cannot* simply take the
result of these functions and take pass them there.

The only effect of this patch is to change what value is dumped for the
DW_AT_ranges attribute, which I think is for the better, as previously
the values appeared to point into thin air.

(The main reason I am looking at this is because I was trying to
implement equivalent functionality in lldb's DWARFUnit, and was stumped
by this behavior.

Reviewers: dblaikie, JDevlieghere, aprantl

Subscribers: hiraditya, llvm-commits, SouraVX

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71006
2019-12-05 12:35:09 +01:00
..
dsymutil [Remarks] Allow empty temporary remark files 2019-11-22 15:58:12 -08:00
gold [Gold Tests] Add missing target flag to X86 test 2019-12-04 11:50:44 -06:00
llvm-ar [llvm-ar][test] Add to thin archive test coverage 2019-12-04 16:17:42 +00:00
llvm-as Make llvm-as --help great again 2019-05-27 08:24:06 +00:00
llvm-cfi-verify
llvm-config
llvm-cov Revert "[Coverage] Revise format to reduce binary size" 2019-12-04 10:35:14 -08:00
llvm-cvtres [COFF] Add a ResourceSectionRef method for getting resource contents 2019-08-30 06:55:49 +00:00
llvm-cxxdump [llvm/Object] - Make ELFObjectFile::getRelocatedSection return Expected<section_iterator> 2019-10-21 11:06:38 +00:00
llvm-cxxfilt [llvm-cxxfilt] Improve strip-underscore behavior 2019-11-18 15:05:41 -08:00
llvm-cxxmap Fix non-portable GNU diff option 2019-10-23 11:19:01 -04:00
llvm-diff
llvm-dlltool [test] [llvm-dlltool] Improve test strictness a little. NFC. 2019-09-02 13:28:21 +00:00
llvm-dwarfdump [llvm/DWARF] Return section offset from DWARFUnit::get{Loc,Rng}listOffset 2019-12-05 12:35:09 +01:00
llvm-dwp Remove some unnecessary REQUIRES: shell lines 2019-09-10 00:06:52 +00:00
llvm-elfabi [Object/ELF.h] - Improve error reporting. 2019-07-05 11:28:49 +00:00
llvm-exegesis [X86] Model MXCSR for AVX instructions other than AVX512 2019-12-03 08:53:47 +08:00
llvm-extract [llvm-extract] Expose the group extraction feature of the BlockExtractor 2019-04-29 16:14:03 +00:00
llvm-ifs [llvm-ifs] Improving detection of PlatformKind from triple for TBD generation. 2019-09-06 19:59:59 +00:00
llvm-isel-fuzzer [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests 2019-05-14 13:54:33 +00:00
llvm-lib [llvm-lib] Detect duplicate input files 2019-10-02 06:41:52 +00:00
llvm-lipo [llvm-lipo] Add support for -extract 2019-11-21 16:11:48 -08:00
llvm-lit
llvm-locstats Reland "[utils] Implement the llvm-locstats tool" 2019-10-02 07:00:01 +00:00
llvm-lto BitStream reader: propagate errors 2019-06-26 19:50:12 +00:00
llvm-lto2 Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
llvm-mc [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
llvm-mca [MCA] Fix test cases (NFC) 2019-11-22 16:19:58 -06:00
llvm-modextract
llvm-mt
llvm-nm [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
llvm-objcopy [llvm-strip][MachO] Test llvm-strip --strip-debug 2019-12-03 21:15:56 -08:00
llvm-objdump [ELF] Support for PT_GNU_PROPERTY in header and tools 2019-12-04 15:38:12 +00:00
llvm-opt-fuzzer [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests 2019-05-14 13:54:33 +00:00
llvm-opt-report
llvm-pdbutil llvm-pdbdump: Fix several smaller issues with injected source compression handling 2019-07-17 22:59:52 +00:00
llvm-profdata Revert "Add --strip-trailing-cr to compression tests so they pass on Windows." 2019-12-04 17:26:30 -05:00
llvm-ranlib llvm-ranlib/nm: Don't print usage message except for usage errors 2019-11-08 15:17:07 -08:00
llvm-rc [llvm-readobj] Print the resource type textually for .res files 2019-08-29 08:59:31 +00:00
llvm-readobj [ELF] Support for PT_GNU_PROPERTY in header and tools 2019-12-04 15:38:12 +00:00
llvm-size [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections. 2019-10-25 13:25:56 +03:00
llvm-split
llvm-strings [llvm-strings][test] Merge two closely related tests 2019-09-02 11:42:30 +00:00
llvm-symbolizer Speculative fix for frame-loclist.s test on Windows. 2019-11-25 17:51:15 -08:00
llvm-xray [llvm-xray] Add basic test for AArch64 support 2019-11-08 14:00:31 -08:00
lto [llvm-nm][llvm-readelf] Avoid single-dash -long-option in tests 2019-04-27 16:12:14 +00:00
obj2yaml [yaml2obj/obj2yaml] - Add support for SHT_LLVM_DEPENDENT_LIBRARIES sections. 2019-11-25 12:57:53 +03:00
opt-viewer
sancov Revert 374629 "[sancov] Accommodate sancov and coverage report server for use under Windows" 2019-10-12 05:23:43 +00:00
sanstats [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
yaml2obj [ELF] Support for PT_GNU_PROPERTY in header and tools 2019-12-04 15:38:12 +00:00