Lines Matching full:sec
338 DataRefImpl Sec; in getSymbolSection() local
341 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
359 Sec.d.a = I; in getSymbolSection()
360 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
376 const uint8_t *GOFFObjectFile::getSectionEdEsdRecord(DataRefImpl &Sec) const { in getSectionEdEsdRecord()
377 SectionEntryImpl EsdIds = SectionList[Sec.d.a]; in getSectionEdEsdRecord()
382 const uint8_t *GOFFObjectFile::getSectionPrEsdRecord(DataRefImpl &Sec) const { in getSectionPrEsdRecord()
383 SectionEntryImpl EsdIds = SectionList[Sec.d.a]; in getSectionPrEsdRecord()
392 DataRefImpl Sec; in getSectionEdEsdRecord() local
393 Sec.d.a = SectionIndex; in getSectionEdEsdRecord()
394 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in getSectionEdEsdRecord()
400 DataRefImpl Sec; in getSectionPrEsdRecord() local
401 Sec.d.a = SectionIndex; in getSectionPrEsdRecord()
402 const uint8_t *EsdRecord = getSectionPrEsdRecord(Sec); in getSectionPrEsdRecord()
406 uint32_t GOFFObjectFile::getSectionDefEsdId(DataRefImpl &Sec) const { in getSectionDefEsdId()
407 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in getSectionDefEsdId()
411 const uint8_t *PrEsdRecord = getSectionPrEsdRecord(Sec); in getSectionDefEsdId()
422 void GOFFObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext()
423 Sec.d.a++; in moveSectionNext()
424 if ((Sec.d.a) >= SectionList.size()) in moveSectionNext()
425 Sec.d.a = 0; in moveSectionNext()
428 Expected<StringRef> GOFFObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
430 SectionEntryImpl EsdIds = SectionList[Sec.d.a]; in getSectionName()
442 uint64_t GOFFObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
444 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in getSectionAddress()
449 uint64_t GOFFObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
451 uint32_t DefEsdId = getSectionDefEsdId(Sec); in getSectionSize()
461 GOFFObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
462 if (SectionDataCache.count(Sec.d.a)) { in getSectionContents()
463 auto &Buf = SectionDataCache[Sec.d.a]; in getSectionContents()
466 uint64_t SectionSize = getSectionSize(Sec); in getSectionContents()
467 uint32_t DefEsdId = getSectionDefEsdId(Sec); in getSectionContents()
469 const uint8_t *EdEsdRecord = getSectionEdEsdRecord(Sec); in getSectionContents()
506 SectionDataCache[Sec.d.a] = Data; in getSectionContents()
507 return ArrayRef<uint8_t>(SectionDataCache[Sec.d.a]); in getSectionContents()
510 uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
511 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in getSectionAlignment()
517 bool GOFFObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
518 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in isSectionText()
524 bool GOFFObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
525 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in isSectionData()
531 bool GOFFObjectFile::isSectionNoLoad(DataRefImpl Sec) const { in isSectionNoLoad()
532 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in isSectionNoLoad()
538 bool GOFFObjectFile::isSectionReadOnlyData(DataRefImpl Sec) const { in isSectionReadOnlyData()
539 if (!isSectionData(Sec)) in isSectionReadOnlyData()
542 const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec); in isSectionReadOnlyData()
548 bool GOFFObjectFile::isSectionZeroInit(DataRefImpl Sec) const { in isSectionZeroInit()
555 DataRefImpl Sec; in section_begin() local
556 moveSectionNext(Sec); in section_begin()
557 return section_iterator(SectionRef(Sec, this)); in section_begin()
561 DataRefImpl Sec; in section_end() local
562 return section_iterator(SectionRef(Sec, this)); in section_end()