summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-15 07:40:30 +0000
committerFangrui Song <maskray@google.com>2019-04-15 07:40:30 +0000
commit50a09670f0d0de8e02c94716b03f538345bf49a1 (patch)
tree8b5af241e624bc19938676487f9f47ea6af3e69c /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
parent43e92880acf1abdcc4ad0646b5d5f16e79ff7cc4 (diff)
downloadbcm5719-llvm-50a09670f0d0de8e02c94716b03f538345bf49a1.tar.gz
bcm5719-llvm-50a09670f0d0de8e02c94716b03f538345bf49a1.zip
[DWARF] Make DWARFDebugLine::ParsingState::RowNumber a local variable
llvm-svn: 358374
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index 8299be38ac6..47df83e6817 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -426,18 +426,18 @@ void DWARFDebugLine::ParsingState::resetRowAndSequence() {
}
void DWARFDebugLine::ParsingState::appendRowToMatrix() {
+ unsigned RowNumber = LineTable->Rows.size();
if (Sequence.Empty) {
// Record the beginning of instruction sequence.
Sequence.Empty = false;
Sequence.LowPC = Row.Address.Address;
Sequence.FirstRowIndex = RowNumber;
}
- ++RowNumber;
LineTable->appendRow(Row);
if (Row.EndSequence) {
// Record the end of instruction sequence.
Sequence.HighPC = Row.Address.Address;
- Sequence.LastRowIndex = RowNumber;
+ Sequence.LastRowIndex = RowNumber + 1;
Sequence.SectionIndex = Row.Address.SectionIndex;
if (Sequence.isValid())
LineTable->appendSequence(Sequence);
OpenPOWER on IntegriCloud