Lines Matching refs:Sec
77 unsigned Sec) {
86 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize;
162 DataRefImpl Sec) {
164 MachO::section_64 Sect = O->getSection64(Sec);
167 MachO::section Sect = O->getSection(Sec);
241 const char *Sec = getSectionPtr(Obj, Load, J);
242 Sections.push_back(Sec);
460 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const {
461 DataRefImpl DRI = Sec.getRawDataRefImpl();
528 section_iterator Sec = *SecOrError;
529 if (Sec->isData() || Sec->isBSS())
597 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const {
598 Sec.d.a++;
601 std::error_code MachOObjectFile::getSectionName(DataRefImpl Sec,
603 ArrayRef<char> Raw = getSectionRawName(Sec);
608 uint64_t MachOObjectFile::getSectionAddress(DataRefImpl Sec) const {
610 return getSection64(Sec).addr;
611 return getSection(Sec).addr;
614 uint64_t MachOObjectFile::getSectionSize(DataRefImpl Sec) const {
623 MachO::section_64 Sect = getSection64(Sec);
628 MachO::section Sect = getSection(Sec);
643 std::error_code MachOObjectFile::getSectionContents(DataRefImpl Sec,
649 MachO::section_64 Sect = getSection64(Sec);
653 MachO::section Sect = getSection(Sec);
662 uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const {
665 MachO::section_64 Sect = getSection64(Sec);
668 MachO::section Sect = getSection(Sec);
675 bool MachOObjectFile::isSectionCompressed(DataRefImpl Sec) const {
679 bool MachOObjectFile::isSectionText(DataRefImpl Sec) const {
680 uint32_t Flags = getSectionFlags(this, Sec);
684 bool MachOObjectFile::isSectionData(DataRefImpl Sec) const {
685 uint32_t Flags = getSectionFlags(this, Sec);
692 bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const {
693 uint32_t Flags = getSectionFlags(this, Sec);
700 unsigned MachOObjectFile::getSectionID(SectionRef Sec) const {
701 return Sec.getRawDataRefImpl().d.a;
704 bool MachOObjectFile::isSectionVirtual(DataRefImpl Sec) const {
709 bool MachOObjectFile::isSectionBitcode(DataRefImpl Sec) const {
710 StringRef SegmentName = getSectionFinalSegmentName(Sec);
712 if (!getSectionName(Sec, SectName))
717 relocation_iterator MachOObjectFile::section_rel_begin(DataRefImpl Sec) const {
719 Ret.d.a = Sec.d.a;
725 MachOObjectFile::section_rel_end(DataRefImpl Sec) const {
728 MachO::section_64 Sect = getSection64(Sec);
731 MachO::section Sect = getSection(Sec);
736 Ret.d.a = Sec.d.a;
1077 DataRefImpl Sec;
1078 Sec.d.a = Rel->getRawDataRefImpl().d.a;
1079 return section_iterator(SectionRef(Sec, this));
1961 MachOObjectFile::getSectionFinalSegmentName(DataRefImpl Sec) const {
1962 ArrayRef<char> Raw = getSectionRawFinalSegmentName(Sec);
1967 MachOObjectFile::getSectionRawName(DataRefImpl Sec) const {
1968 assert(Sec.d.a < Sections.size() && "Should have detected this earlier");
1970 reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
1975 MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const {
1976 assert(Sec.d.a < Sections.size() && "Should have detected this earlier");
1978 reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
2073 const char *Sec = getSectionPtr(this, L, Index);
2074 return getStruct<MachO::section>(this, Sec);
2079 const char *Sec = getSectionPtr(this, L, Index);
2080 return getStruct<MachO::section_64>(this, Sec);
2202 DataRefImpl Sec;
2203 Sec.d.a = Rel.d.a;
2206 MachO::section_64 Sect = getSection64(Sec);
2209 MachO::section Sect = getSection(Sec);