Lines Matching refs:NI
984 for (const DWARFDebugNames::NameIndex &NI : AccelTable) { in verifyDebugNamesCULists() local
985 if (NI.getCUCount() == 0) { in verifyDebugNamesCULists()
987 NI.getUnitOffset()); in verifyDebugNamesCULists()
991 for (uint32_t CU = 0, End = NI.getCUCount(); CU < End; ++CU) { in verifyDebugNamesCULists()
992 uint64_t Offset = NI.getCUOffset(CU); in verifyDebugNamesCULists()
998 NI.getUnitOffset(), Offset); in verifyDebugNamesCULists()
1006 NI.getUnitOffset(), Offset, Iter->second); in verifyDebugNamesCULists()
1009 Iter->second = NI.getUnitOffset(); in verifyDebugNamesCULists()
1022 DWARFVerifier::verifyNameIndexBuckets(const DWARFDebugNames::NameIndex &NI, in verifyNameIndexBuckets() argument
1034 if (NI.getBucketCount() == 0) { in verifyNameIndexBuckets()
1036 NI.getUnitOffset()); in verifyNameIndexBuckets()
1043 BucketStarts.reserve(NI.getBucketCount() + 1); in verifyNameIndexBuckets()
1044 for (uint32_t Bucket = 0, End = NI.getBucketCount(); Bucket < End; ++Bucket) { in verifyNameIndexBuckets()
1045 uint32_t Index = NI.getBucketArrayEntry(Bucket); in verifyNameIndexBuckets()
1046 if (Index > NI.getNameCount()) { in verifyNameIndexBuckets()
1049 Bucket, NI.getUnitOffset(), Index, NI.getNameCount()); in verifyNameIndexBuckets()
1068 BucketStarts.emplace_back(NI.getBucketCount(), NI.getNameCount() + 1); in verifyNameIndexBuckets()
1084 NI.getUnitOffset(), NextUncovered, B.Index - 1); in verifyNameIndexBuckets()
1090 if (B.Bucket == NI.getBucketCount()) in verifyNameIndexBuckets()
1098 uint32_t FirstHash = NI.getHashArrayEntry(Idx); in verifyNameIndexBuckets()
1099 if (FirstHash % NI.getBucketCount() != B.Bucket) { in verifyNameIndexBuckets()
1103 NI.getUnitOffset(), B.Bucket, FirstHash, in verifyNameIndexBuckets()
1104 FirstHash % NI.getBucketCount()); in verifyNameIndexBuckets()
1111 while (Idx <= NI.getNameCount()) { in verifyNameIndexBuckets()
1112 uint32_t Hash = NI.getHashArrayEntry(Idx); in verifyNameIndexBuckets()
1113 if (Hash % NI.getBucketCount() != B.Bucket) in verifyNameIndexBuckets()
1116 const char *Str = NI.getNameTableEntry(Idx).getString(); in verifyNameIndexBuckets()
1121 NI.getUnitOffset(), Str, Idx, in verifyNameIndexBuckets()
1134 const DWARFDebugNames::NameIndex &NI, const DWARFDebugNames::Abbrev &Abbr, in verifyNameIndexAttribute() argument
1140 NI.getUnitOffset(), Abbr.Code, AttrEnc.Index, in verifyNameIndexAttribute()
1150 NI.getUnitOffset(), Abbr.Code, AttrEnc.Form, dwarf::DW_FORM_data8); in verifyNameIndexAttribute()
1177 NI.getUnitOffset(), Abbr.Code, AttrEnc.Index); in verifyNameIndexAttribute()
1184 NI.getUnitOffset(), Abbr.Code, AttrEnc.Index, in verifyNameIndexAttribute()
1192 DWARFVerifier::verifyNameIndexAbbrevs(const DWARFDebugNames::NameIndex &NI) { in verifyNameIndexAbbrevs() argument
1193 if (NI.getLocalTUCount() + NI.getForeignTUCount() > 0) { in verifyNameIndexAbbrevs()
1196 NI.getUnitOffset()); in verifyNameIndexAbbrevs()
1201 for (const auto &Abbrev : NI.getAbbrevs()) { in verifyNameIndexAbbrevs()
1206 NI.getUnitOffset(), Abbrev.Code, Abbrev.Tag); in verifyNameIndexAbbrevs()
1213 NI.getUnitOffset(), Abbrev.Code, AttrEnc.Index); in verifyNameIndexAbbrevs()
1217 NumErrors += verifyNameIndexAttribute(NI, Abbrev, AttrEnc); in verifyNameIndexAbbrevs()
1220 if (NI.getCUCount() > 1 && !Attributes.count(dwarf::DW_IDX_compile_unit)) { in verifyNameIndexAbbrevs()
1223 NI.getUnitOffset(), Abbrev.Code, in verifyNameIndexAbbrevs()
1230 NI.getUnitOffset(), Abbrev.Code, dwarf::DW_IDX_die_offset); in verifyNameIndexAbbrevs()
1256 const DWARFDebugNames::NameIndex &NI, in verifyNameIndexEntries() argument
1259 if (NI.getLocalTUCount() + NI.getForeignTUCount() > 0) in verifyNameIndexEntries()
1266 NI.getUnitOffset(), NTE.getIndex()); in verifyNameIndexEntries()
1275 Expected<DWARFDebugNames::Entry> EntryOr = NI.getEntry(&NextEntryID); in verifyNameIndexEntries()
1277 EntryOr = NI.getEntry(&NextEntryID)) { in verifyNameIndexEntries()
1279 if (CUIndex > NI.getCUCount()) { in verifyNameIndexEntries()
1282 NI.getUnitOffset(), EntryID, CUIndex); in verifyNameIndexEntries()
1286 uint64_t CUOffset = NI.getCUOffset(CUIndex); in verifyNameIndexEntries()
1292 NI.getUnitOffset(), EntryID, DIEOffset); in verifyNameIndexEntries()
1299 NI.getUnitOffset(), EntryID, DIEOffset, CUOffset, in verifyNameIndexEntries()
1306 NI.getUnitOffset(), EntryID, DIEOffset, EntryOr->tag(), in verifyNameIndexEntries()
1315 NI.getUnitOffset(), EntryID, DIEOffset, Str, in verifyNameIndexEntries()
1326 NI.getUnitOffset(), NTE.getIndex(), Str); in verifyNameIndexEntries()
1332 NI.getUnitOffset(), NTE.getIndex(), Str, in verifyNameIndexEntries()
1364 const DWARFDie &Die, const DWARFDebugNames::NameIndex &NI) { in verifyNameIndexCompleteness() argument
1452 if (none_of(NI.equal_range(Name), [&](const DWARFDebugNames::Entry &E) { in verifyNameIndexCompleteness()
1457 NI.getUnitOffset(), Die.getOffset(), Die.getTag(), in verifyNameIndexCompleteness()
1482 for (const auto &NI : AccelTable) in verifyDebugNames() local
1483 NumErrors += verifyNameIndexBuckets(NI, StrData); in verifyDebugNames()
1484 for (const auto &NI : AccelTable) in verifyDebugNames() local
1485 NumErrors += verifyNameIndexAbbrevs(NI); in verifyDebugNames()
1490 for (const auto &NI : AccelTable) in verifyDebugNames() local
1491 for (DWARFDebugNames::NameTableEntry NTE : NI) in verifyDebugNames()
1492 NumErrors += verifyNameIndexEntries(NI, NTE); in verifyDebugNames()
1498 if (const DWARFDebugNames::NameIndex *NI = in verifyDebugNames() local
1502 NumErrors += verifyNameIndexCompleteness(DWARFDie(CU, &Die), *NI); in verifyDebugNames()