Lines Matching defs:Prologue
70 DWARFDebugLine::Prologue::Prologue() { clear(); }
72 bool DWARFDebugLine::Prologue::hasFileAtIndex(uint64_t FileIndex) const {
82 DWARFDebugLine::Prologue::getLastValidFileIndex() const {
95 DWARFDebugLine::Prologue::getFileNameEntry(uint64_t Index) const {
105 void DWARFDebugLine::Prologue::clear() {
117 void DWARFDebugLine::Prologue::dump(raw_ostream &OS,
355 uint64_t DWARFDebugLine::Prologue::getLength() const {
363 Error DWARFDebugLine::Prologue::parse(
540 Prologue.dump(OS, DumpOptions);
556 Prologue.clear();
569 Row.reset(LineTable->Prologue.DefaultIsStmt);
638 StringRef OpcodeName = getOpcodeName(Opcode, LineTable->Prologue.OpcodeBase);
642 if (ReportAdvanceAddrProblem && LineTable->Prologue.getVersion() >= 4 &&
643 LineTable->Prologue.MaxOpsPerInst == 0)
656 if (ReportAdvanceAddrProblem && LineTable->Prologue.MaxOpsPerInst > 1)
665 LineTable->Prologue.MaxOpsPerInst));
666 if (ReportAdvanceAddrProblem && LineTable->Prologue.MinInstLength == 0)
688 std::max(LineTable->Prologue.MaxOpsPerInst, uint8_t{1});
691 LineTable->Prologue.MinInstLength;
705 Opcode >= LineTable->Prologue.OpcodeBase);
706 if (ReportBadLineRange && LineTable->Prologue.LineRange == 0) {
708 getOpcodeName(Opcode, LineTable->Prologue.OpcodeBase);
722 uint8_t AdjustedOpcode = OpcodeValue - LineTable->Prologue.OpcodeBase;
724 LineTable->Prologue.LineRange != 0
725 ? AdjustedOpcode / LineTable->Prologue.LineRange
769 if (LineTable->Prologue.LineRange != 0)
771 LineTable->Prologue.LineBase +
772 (AddrAdvanceResult.AdjustedOpcode % LineTable->Prologue.LineRange);
800 Prologue.parse(DebugLineData, OffsetPtr, RecoverableErrorHandler, Ctx, U);
805 Prologue.dump(*OS, DumpOptions);
816 uint64_t ProgramLength = Prologue.TotalLength + Prologue.sizeofTotalLength();
839 TableData.setAddressSize(Prologue.getAddressSize());
841 assert(Prologue.getAddressSize() == 0 ||
842 Prologue.getAddressSize() == TableData.getAddressSize());
846 *OffsetPtr = DebugLineOffset + Prologue.getLength();
1005 Prologue.FileNames.push_back(FileEntry);
1057 } else if (Opcode < Prologue.OpcodeBase) {
1202 assert(Opcode - 1U < Prologue.StandardOpcodeLengths.size());
1205 uint8_t OpcodeLength = Prologue.StandardOpcodeLengths[Opcode - 1];
1432 if (Kind == FileLineInfoKind::None || !Prologue.hasFileAtIndex(FileIndex))
1434 const FileNameEntry &Entry = Prologue.getFileNameEntry(FileIndex);
1448 bool DWARFDebugLine::Prologue::getFileNameByIndex(
1522 if (Prologue.getVersion() >= 5) {
1523 if (Entry.DirIdx < Prologue.IncludeDirectories.size()) {
1525 dwarf::toString(Prologue.IncludeDirectories[Entry.DirIdx], "");
1530 if (0 < Entry.DirIdx && Entry.DirIdx <= Prologue.IncludeDirectories.size()) {
1532 dwarf::toString(Prologue.IncludeDirectories[Entry.DirIdx - 1], "");
1561 bool DWARFDebugLine::Prologue::totalLengthIsValid() const {
1577 moveToNextTable(OldOffset, LT.Prologue);
1589 if (Error Err = LT.Prologue.parse(DebugLineData, &Offset,
1592 moveToNextTable(OldOffset, LT.Prologue);
1620 const Prologue &P) {