[PATCH] D78971: [llvm/DebugInfo] Fix invalid verifier error for DWARF5
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 10:12:24 PDT 2020
JDevlieghere marked 2 inline comments as done.
JDevlieghere added inline comments.
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp:467
+ "DW_AT_ranges offset is beyond " +
+ StringRef(DwarfVersion < 5 ? ".debug_ranges" : ".debug_rnglists") +
+ " bounds: " + llvm::formatv("{0:x8}", *SectionOffset));
----------------
aprantl wrote:
> is there a `RangeSection.getName()`? Because on Mach-O the section would technically be called __debug_ranges, for example.
Not currently. But that does sound like a good improvement, which we should apply everywhere. Below for example ".debug_line" is also printed as part of the error message.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78971/new/
https://reviews.llvm.org/D78971
More information about the llvm-commits
mailing list