[PATCH] D28613: Alternative proposal to https://reviews.llvm.org/D28581 where we return a DWARFormValue from DWARFDie::find*() functions
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 10:11:35 PST 2017
aprantl added inline comments.
================
Comment at: lib/DebugInfo/DWARF/DWARFDie.cpp:217
// Multiple ranges from .debug_ranges section.
- auto RangesOffset = getAttributeValueAsSectionOffset(DW_AT_ranges);
+ auto RangesOffset = find(DW_AT_ranges).getAsSectionOffset();
if (RangesOffset) {
----------------
if (auto RangeOffset = ...)
https://reviews.llvm.org/D28613
More information about the llvm-commits
mailing list