[llvm] r357866 - [DWARF] DWARFDebugLine: delete unused parameter `Offset`

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 7 06:56:14 PDT 2019


Author: maskray
Date: Sun Apr  7 06:56:14 2019
New Revision: 357866

URL: http://llvm.org/viewvc/llvm-project?rev=357866&view=rev
Log:
[DWARF] DWARFDebugLine: delete unused parameter `Offset`

Modified:
    llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
    llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp

Modified: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h?rev=357866&r1=357865&r2=357866&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h Sun Apr  7 06:56:14 2019
@@ -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;

Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp?rev=357866&r1=357865&r2=357866&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp Sun Apr  7 06:56:14 2019
@@ -424,7 +424,7 @@ void DWARFDebugLine::ParsingState::reset
   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;
     }




More information about the llvm-commits mailing list