Lines Matching refs:MCSec

83   const MCSectionXCOFF *const MCSec;  member
90 StringRef getSymbolTableName() const { return MCSec->getSymbolTableName(); } in getSymbolTableName()
92 return MCSec->getVisibilityType(); in getVisibilityType()
94 XCOFFSection(const MCSectionXCOFF *MCSec) in XCOFFSection()
95 : MCSec(MCSec), SymbolTableIndex(-1), Address(-1), Size(0) {} in XCOFFSection()
217 assert(DwarfSect->MCSec->isDwarfSect() && in DwarfSectionEntry()
348 CsectGroup &getCsectGroup(const MCSectionXCOFF *MCSec);
492 CsectGroup &XCOFFObjectWriter::getCsectGroup(const MCSectionXCOFF *MCSec) { in getCsectGroup() argument
493 switch (MCSec->getMappingClass()) { in getCsectGroup()
495 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
499 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
503 if (XCOFF::XTY_CM == MCSec->getCSectType()) in getCsectGroup()
506 if (XCOFF::XTY_SD == MCSec->getCSectType()) in getCsectGroup()
513 assert(XCOFF::XTY_CM == MCSec->getCSectType() && in getCsectGroup()
518 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
523 assert(XCOFF::XTY_CM == MCSec->getCSectType() && in getCsectGroup()
528 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
536 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
542 assert((XCOFF::XTY_SD == MCSec->getCSectType() || in getCsectGroup()
543 XCOFF::XTY_CM == MCSec->getCSectType()) && in getCsectGroup()
561 const auto *MCSec = cast<const MCSectionXCOFF>(&S); in executePostLayoutBinding() local
562 assert(!SectionMap.contains(MCSec) && "Cannot add a section twice."); in executePostLayoutBinding()
566 if (nameShouldBeInStringTable(MCSec->getSymbolTableName())) in executePostLayoutBinding()
567 Strings.add(MCSec->getSymbolTableName()); in executePostLayoutBinding()
568 if (MCSec->isCsect()) { in executePostLayoutBinding()
572 assert(XCOFF::XTY_ER != MCSec->getCSectType() && in executePostLayoutBinding()
574 CsectGroup &Group = getCsectGroup(MCSec); in executePostLayoutBinding()
575 Group.emplace_back(MCSec); in executePostLayoutBinding()
576 SectionMap[MCSec] = &Group.back(); in executePostLayoutBinding()
577 } else if (MCSec->isDwarfSect()) { in executePostLayoutBinding()
580 std::make_unique<XCOFFSection>(MCSec); in executePostLayoutBinding()
581 SectionMap[MCSec] = DwarfSec.get(); in executePostLayoutBinding()
583 DwarfSectionEntry SecEntry(MCSec->getName(), in executePostLayoutBinding()
584 *MCSec->getDwarfSubtypeFlags(), in executePostLayoutBinding()
627 assert(Csect->MCSec->isCsect() && "only csect is supported now!"); in executePostLayoutBinding()
985 CSectionRef.MCSec->getMappingClass()); in writeSymbolEntryForCsectMemberLabel()
990 assert(DwarfSectionRef.MCSec->isDwarfSect() && "Not a DWARF section!"); in writeSymbolEntryForDwarfSection()
1004 writeSymbolAuxCsectEntry(CSectionRef.Size, getEncodedType(CSectionRef.MCSec), in writeSymbolEntryForControlSection()
1005 CSectionRef.MCSec->getMappingClass()); in writeSymbolEntryForControlSection()
1126 if (Section.MCSec->isCsect()) in writeRelocation()
1130 assert(Section.MCSec->isDwarfSect() && "unsupport section type!"); in writeRelocation()
1211 Csect.MCSec->getStorageClass()); in writeSymbolTable()
1227 Csect.MCSec->getStorageClass()); in writeSymbolTable()
1428 SymbolIndexMap[Csect.MCSec->getQualNameSymbol()] = Csect.SymbolTableIndex; in assignAddressesAndIndices()
1469 const MCSectionXCOFF *MCSec = Csect.MCSec; in assignAddressesAndIndices() local
1470 Csect.Address = alignTo(Address, MCSec->getAlign()); in assignAddressesAndIndices()
1471 Csect.Size = Asm.getSectionAddressSize(*MCSec); in assignAddressesAndIndices()
1474 SymbolIndexMap[MCSec->getQualNameSymbol()] = Csect.SymbolTableIndex; in assignAddressesAndIndices()
1525 (*DwarfSections.begin()).DwarfSect->MCSec->getAlign()) - in assignAddressesAndIndices()
1533 const MCSectionXCOFF *MCSec = DwarfSect.MCSec; in assignAddressesAndIndices() local
1541 SymbolIndexMap[MCSec->getQualNameSymbol()] = DwarfSect.SymbolTableIndex; in assignAddressesAndIndices()
1550 alignTo(Address, MCSec->getAlign()); in assignAddressesAndIndices()
1554 DwarfSection.Size = DwarfSect.Size = Asm.getSectionAddressSize(*MCSec); in assignAddressesAndIndices()
1622 Asm.writeSectionData(W.OS, Csect.MCSec); in writeSectionForControlSectionEntry()
1651 Asm.writeSectionData(W.OS, DwarfEntry.DwarfSect->MCSec); in writeSectionForDwarfSectionEntry()