File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
include/llvm/DebugInfo/DWARF Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ class DWARFDebugLine {
405
405
ParsingState (struct LineTable *LT, uint64_t TableOffset,
406
406
function_ref<void (Error)> ErrorHandler);
407
407
408
- void resetRowAndSequence (uint64_t Offset = UINT64_MAX );
408
+ void resetRowAndSequence (uint64_t Offset);
409
409
void appendRowToMatrix ();
410
410
411
411
struct AddrOpIndexDelta {
Original file line number Diff line number Diff line change @@ -562,16 +562,12 @@ void DWARFDebugLine::LineTable::clear() {
562
562
DWARFDebugLine::ParsingState::ParsingState (
563
563
struct LineTable *LT, uint64_t TableOffset,
564
564
function_ref<void (Error)> ErrorHandler)
565
- : LineTable(LT), LineTableOffset(TableOffset), ErrorHandler(ErrorHandler) {
566
- resetRowAndSequence ();
567
- }
565
+ : LineTable(LT), LineTableOffset(TableOffset), ErrorHandler(ErrorHandler) {}
568
566
569
567
void DWARFDebugLine::ParsingState::resetRowAndSequence (uint64_t Offset) {
570
568
Row.reset (LineTable->Prologue .DefaultIsStmt );
571
569
Sequence.reset ();
572
- if (Offset != UINT64_MAX) {
573
- Sequence.SetSequenceOffset (Offset);
574
- }
570
+ Sequence.SetSequenceOffset (Offset);
575
571
}
576
572
577
573
void DWARFDebugLine::ParsingState::appendRowToMatrix () {
@@ -854,7 +850,7 @@ Error DWARFDebugLine::LineTable::parse(
854
850
}
855
851
// *OffsetPtr points to the end of the prologue - i.e. the start of the first
856
852
// sequence. So initialize the first sequence offset accordingly.
857
- State.Sequence . SetSequenceOffset (*OffsetPtr);
853
+ State.resetRowAndSequence (*OffsetPtr);
858
854
859
855
bool TombstonedAddress = false ;
860
856
auto EmitRow = [&] {
You can’t perform that action at this time.
0 commit comments