]> granicus.if.org Git - llvm/commitdiff
[DWARF] DWARFDebugLine: delete unused parameter `Offset`
authorFangrui Song <maskray@google.com>
Sun, 7 Apr 2019 13:56:14 +0000 (13:56 +0000)
committerFangrui Song <maskray@google.com>
Sun, 7 Apr 2019 13:56:14 +0000 (13:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357866 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
lib/DebugInfo/DWARF/DWARFDebugLine.cpp

index 1f36e0daed0c553c59b09c77edaca0a51324ee0b..a17faf6d211b70edc5668c0c60f3171555a0435a 100644 (file)
@@ -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;
index 534201877730c950d31c26efce99160b16444328..4fc6261ae156d9935a2efe928ae519d3bb6dffdb 100644 (file)
@@ -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;
     }