This is an archive of the discontinued LLVM Phabricator instance.

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 Timeline

clayborg updated this revision to Diff 84134.Jan 12 2017, 9:20 AM
clayborg retitled this revision from to Alternative proposal to https://reviews.llvm.org/D28581 where we return a DWARFormValue from DWARFDie::find*() functions.
clayborg updated this object.

Whoops I accidentally added "aam" as a reviewer instead of Adrian...

aprantl edited edge metadata.Jan 12 2017, 10:10 AM

When comparing with https://reviews.llvm.org/D28581 I think this variant is much more readable.

lib/DebugInfo/DWARF/DWARFDie.cpp
217

if (auto RangeOffset = ...)

clayborg abandoned this revision.Jan 12 2017, 4:08 PM

After speaking with Adrian who had spoken with Dave Blaike, we settled on using the other proposal.