]> granicus.if.org Git - llvm/commit
[dwarfdump][NFC] Consistent printing of address ranges
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 Sep 2017 15:41:22 +0000 (15:41 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 Sep 2017 15:41:22 +0000 (15:41 +0000)
commit0fbd59fa1265d5e03a95ec6ec7561b965ae453b8
treee7a350f3c60c4732a1e6bea8ef0ad5e7a6fcaac4
parentda47d9d5d0e924ba929b86489b5a3892b0b454e2
[dwarfdump][NFC] Consistent printing of address ranges

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.

Differential revision: https://reviews.llvm.org/D38395

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314523 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
lib/DebugInfo/DWARF/DWARFVerifier.cpp
test/tools/llvm-dwarfdump/X86/verify_die_ranges.s