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()
281 for (const std::unique_ptr<Section> &Sec : LC.Sections) { in dumpSectionToFile() local
282 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
284 FileOutputBuffer::create(Filename, Sec->Content.size()); in dumpSectionToFile()
288 llvm::copy(Sec->Content, Buf->getBufferStart()); in dumpSectionToFile()
303 Section Sec(TargetSegName, Pair.second); in addSection() local
304 Sec.Content = in addSection()
306 Sec.Size = Sec.Content.size(); in addSection()
315 LC.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
324 Obj.addSegment(TargetSegName, alignTo(Sec.Size, 16384)); in addSection()
325 NewSegment.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
342 [SecName](const std::unique_ptr<Section> &Sec) { in findSection() argument
343 return Sec->Sectname == SecName; in findSection()
359 Section &Sec = *SecToUpdateOrErr; in updateSection() local
361 if (NewSection.SectionData->getBufferSize() > Sec.Size) in updateSection()
365 Sec.Content = O.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in updateSection()
366 Sec.Size = Sec.Content.size(); in updateSection()
414 for (std::unique_ptr<Section> &Sec : LC.Sections) in handleArgs()
415 Sec->Relocations.clear(); in handleArgs()