Lines Matching defs:BinSec
4383 auto addSection = [&](const ELFShdrTy &Section, BinarySection &BinSec) {
4385 NewSection.sh_name = SHStrTab.getOffset(BinSec.getOutputName());
4386 OutputSections.emplace_back(&BinSec, std::move(NewSection));
4401 BinarySection *BinSec = BC->getSectionForSectionRef(SecRef);
4402 assert(BinSec && "Matching BinarySection should exist.");
4405 if (BinSec->isAnonymous())
4408 addSection(Section, *BinSec);
4484 BinarySection *BinSec = BC->getSectionForSectionRef(SecRef);
4485 assert(BinSec && "Matching BinarySection should exist.");
4488 NewSection.sh_offset = BinSec->getOutputFileOffset();
4489 NewSection.sh_size = BinSec->getOutputSize();
4494 addSection(NewSection, *BinSec);
4496 LastFileOffset = BinSec->getOutputFileOffset();
4537 BinarySection *BinSec = BC->getSectionForSectionRef(SecRef);
4538 assert(BinSec && "BinarySection should exist for an input section.");
4541 if (!BinSec->hasValidIndex())
4544 NewSectionIndex[OrgIndex] = BinSec->getIndex();