This code seems to be more natural as it keeps things cleaner and more readable. I prefer this option over the one in https://reviews.llvm.org/D28581.
Did this to allow us to compare the two approaches to see which one we like better.
Paths
| Differential D28613
Alternative proposal to https://reviews.llvm.org/D28581 where we return a DWARFormValue from DWARFDie::find*() functions AbandonedPublic Authored by clayborg on Jan 12 2017, 9:20 AM.
Details
Summary This code seems to be more natural as it keeps things cleaner and more readable. I prefer this option over the one in https://reviews.llvm.org/D28581. Did this to allow us to compare the two approaches to see which one we like better.
Diff Detail Event TimelineComment Actions When comparing with https://reviews.llvm.org/D28581 I think this variant is much more readable.
Comment Actions After speaking with Adrian who had spoken with Dave Blaike, we settled on using the other proposal.
Revision Contents
Diff 84134 include/llvm/DebugInfo/DWARF/DWARFDie.h
include/llvm/DebugInfo/DWARF/DWARFFormValue.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFDie.cpp
lib/DebugInfo/DWARF/DWARFFormValue.cpp
lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
tools/dsymutil/DwarfLinker.cpp
tools/obj2yaml/dwarf2yaml.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
|
if (auto RangeOffset = ...)