From a2353929a36fcf4fe8e80d113bae470eac8bba26 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 7 Apr 2019 13:56:14 +0000 Subject: [PATCH] [DWARF] DWARFDebugLine: delete unused parameter `Offset` git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357866 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo/DWARF/DWARFDebugLine.h | 2 +- lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h b/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h index 1f36e0daed0..a17faf6d211 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h @@ -351,7 +351,7 @@ private: ParsingState(struct LineTable *LT); void resetRowAndSequence(); - void appendRowToMatrix(uint32_t Offset); + void appendRowToMatrix(); /// Line table we're currently parsing. struct LineTable *LineTable; diff --git a/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 53420187773..4fc6261ae15 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -424,7 +424,7 @@ void DWARFDebugLine::ParsingState::resetRowAndSequence() { Sequence.reset(); } -void DWARFDebugLine::ParsingState::appendRowToMatrix(uint32_t Offset) { +void DWARFDebugLine::ParsingState::appendRowToMatrix() { if (Sequence.Empty) { // Record the beginning of instruction sequence. Sequence.Empty = false; @@ -540,7 +540,7 @@ Error DWARFDebugLine::LineTable::parse( // address is that of the byte after the last target machine instruction // of the sequence. State.Row.EndSequence = true; - State.appendRowToMatrix(*OffsetPtr); + State.appendRowToMatrix(); if (OS) { *OS << "\n"; OS->indent(12); @@ -642,7 +642,7 @@ Error DWARFDebugLine::LineTable::parse( // Takes no arguments. Append a row to the matrix using the // current values of the state-machine registers. Then set // the basic_block register to false. - State.appendRowToMatrix(*OffsetPtr); + State.appendRowToMatrix(); if (OS) { *OS << "\n"; OS->indent(12); @@ -827,7 +827,7 @@ Error DWARFDebugLine::LineTable::parse( State.Row.dump(*OS); } - State.appendRowToMatrix(*OffsetPtr); + State.appendRowToMatrix(); // Reset discriminator to 0. State.Row.Discriminator = 0; } -- 2.50.1