Lines Matching refs:Sec
32 using SectionPred = std::function<bool(const std::unique_ptr<Section> &Sec)>;
61 RemovePred = [&Config, RemovePred](const std::unique_ptr<Section> &Sec) { in removeSections() argument
62 return Config.ToRemove.matches(Sec->CanonicalName); in removeSections()
68 RemovePred = [RemovePred](const std::unique_ptr<Section> &Sec) { in removeSections() argument
69 if (Sec->Segname == "__DWARF") in removeSections()
72 return RemovePred(Sec); in removeSections()
78 RemovePred = [&Config](const std::unique_ptr<Section> &Sec) { in removeSections() argument
79 return !Config.OnlySection.matches(Sec->CanonicalName); in removeSections()
292 for (const std::unique_ptr<Section> &Sec : LC.Sections) { in dumpSectionToFile() local
293 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
295 FileOutputBuffer::create(Filename, Sec->Content.size()); in dumpSectionToFile()
299 llvm::copy(Sec->Content, Buf->getBufferStart()); in dumpSectionToFile()
314 Section Sec(TargetSegName, Pair.second); in addSection() local
315 Sec.Content = in addSection()
317 Sec.Size = Sec.Content.size(); in addSection()
326 LC.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
335 Obj.addSegment(TargetSegName, alignTo(Sec.Size, 16384)); in addSection()
336 NewSegment.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
353 [SecName](const std::unique_ptr<Section> &Sec) { in findSection() argument
354 return Sec->Sectname == SecName; in findSection()
370 Section &Sec = *SecToUpdateOrErr; in updateSection() local
372 if (NewSection.SectionData->getBufferSize() > Sec.Size) in updateSection()
376 Sec.Content = O.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in updateSection()
377 Sec.Size = Sec.Content.size(); in updateSection()
425 for (std::unique_ptr<Section> &Sec : LC.Sections) in handleArgs()
426 Sec->Relocations.clear(); in handleArgs()