Lines Matching defs:Sec

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