summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-04-27 10:00:13 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-04-27 10:00:13 +0000
commite6ef4488e194b96d0925cb0fc7d9dba5d6404142 (patch)
tree95f0833739e8ddffb3abb4515ea9ccd9ad32102c /llvm/lib
parent7762b8376817edcb02b962b8a1324484aead5a74 (diff)
downloadbcm5719-llvm-e6ef4488e194b96d0925cb0fc7d9dba5d6404142.tar.gz
bcm5719-llvm-e6ef4488e194b96d0925cb0fc7d9dba5d6404142.zip
[llvm-dwarfdump] - Change format for .gdb_index dump.
It is useful to output size of ranges when address ranges section of .gdb_index is dumped. It helps to compare outputs produced by different linkers, for example. In that case address ranges can look very different, when they are the same at fact. Difference comes from different low address because of different address of .text. Differential revision: https://reviews.llvm.org/D32492 llvm-svn: 301527
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp b/llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
index 76354a9b1dd..0625d01097c 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
@@ -39,8 +39,9 @@ void DWARFGdbIndex::dumpAddressArea(raw_ostream &OS) const {
<< '\n';
for (const AddressEntry &Addr : AddressArea)
OS << format(
- " Low address = 0x%llx, High address = 0x%llx, CU index = %d\n",
- Addr.LowAddress, Addr.HighAddress, Addr.CuIndex);
+ " Low/High address = [0x%llx, 0x%llx) (Size: 0x%llx), CU id = %d\n",
+ Addr.LowAddress, Addr.HighAddress, Addr.HighAddress - Addr.LowAddress,
+ Addr.CuIndex);
}
void DWARFGdbIndex::dumpSymbolTable(raw_ostream &OS) const {
OpenPOWER on IntegriCloud