summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-12-03 18:41:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-12-03 18:41:59 +0000
commit725c4f71d1f8cdc379a1db8fcb03173a6e174566 (patch)
treeef25d23cfe7a41e39a07d0e3ce7d59501dc5d59f /llvm/lib
parent9ea3064be50e91ab231e17eb89fc2ad5a8c8b42e (diff)
downloadbcm5719-llvm-725c4f71d1f8cdc379a1db8fcb03173a6e174566.tar.gz
bcm5719-llvm-725c4f71d1f8cdc379a1db8fcb03173a6e174566.zip
dwarfdump: Correctly indentify the indicies for DWP records
The indicies are one-based, not zero-based, per the spec. llvm-svn: 254626
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
index 1f1921649b5..96b316957df 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
@@ -133,7 +133,7 @@ void DWARFUnitIndex::dump(raw_ostream &OS) const {
for (unsigned i = 0; i != Header.NumBuckets; ++i) {
auto &Row = Rows[i];
if (auto *Contribs = Row.Contributions.get()) {
- OS << format("%5u 0x%016" PRIx64 " ", i, Row.Signature);
+ OS << format("%5u 0x%016" PRIx64 " ", i + 1, Row.Signature);
for (unsigned i = 0; i != Header.NumColumns; ++i) {
auto &Contrib = Contribs[i];
OS << format("[0x%08x, 0x%08x) ", Contrib.Offset,
OpenPOWER on IntegriCloud