Lines Matching defs:NewSection
330 static Error addSection(const NewSectionInfo &NewSection, Object &Obj) {
331 std::pair<StringRef, StringRef> Pair = NewSection.SectionName.split(',');
335 Obj.NewSectionsContents.save(NewSection.SectionData->getBuffer());
384 static Error updateSection(const NewSectionInfo &NewSection, Object &O) {
385 Expected<Section &> SecToUpdateOrErr = findSection(NewSection.SectionName, O);
391 if (NewSection.SectionData->getBufferSize() > Sec.Size)
395 Sec.Content = O.NewSectionsContents.save(NewSection.SectionData->getBuffer());
447 for (const NewSectionInfo &NewSection : Config.AddSection) {
448 if (Error E = isValidMachOCannonicalName(NewSection.SectionName))
450 if (Error E = addSection(NewSection, Obj))
454 for (const NewSectionInfo &NewSection : Config.UpdateSection) {
455 if (Error E = isValidMachOCannonicalName(NewSection.SectionName))
457 if (Error E = updateSection(NewSection, Obj))