diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-12-03 18:41:59 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-12-03 18:41:59 +0000 |
| commit | 725c4f71d1f8cdc379a1db8fcb03173a6e174566 (patch) | |
| tree | ef25d23cfe7a41e39a07d0e3ce7d59501dc5d59f /llvm/lib/DebugInfo | |
| parent | 9ea3064be50e91ab231e17eb89fc2ad5a8c8b42e (diff) | |
| download | bcm5719-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/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp | 2 |
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, |

