This is an archive of the discontinued LLVM Phabricator instance.

[dwarfdump][NFC] Consistent printing of address ranges
ClosedPublic

Authored by JDevlieghere on Sep 29 2017, 3:42 AM.

Details

Summary

This implement the insertion operator for DWARF address ranges so they
are consistently printed as [LowPC, HighPC).

While a dump method might have felt more consistent, it is used
exclusively for printing error messages in the verifier and never used
for actual dumping. Hence this approach is more intuitive and creates
less clutter at the call sites.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Sep 29 2017, 3:42 AM
aprantl added inline comments.
lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
21

I think we should use ", " instead of "- ". IMHO either it's start - end or [start, end)

aprantl accepted this revision.Sep 29 2017, 8:11 AM

Otherwise this is great, thanks!

This revision is now accepted and ready to land.Sep 29 2017, 8:11 AM
This revision was automatically updated to reflect the committed changes.