Lines Matching refs:NewSection
300 static Error addSection(const NewSectionInfo &NewSection, Object &Obj) { in addSection() argument
301 std::pair<StringRef, StringRef> Pair = NewSection.SectionName.split(','); in addSection()
305 Obj.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in addSection()
354 static Error updateSection(const NewSectionInfo &NewSection, Object &O) { in updateSection() argument
355 Expected<Section &> SecToUpdateOrErr = findSection(NewSection.SectionName, O); in updateSection()
361 if (NewSection.SectionData->getBufferSize() > Sec.Size) in updateSection()
365 Sec.Content = O.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in updateSection()
417 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs() local
418 if (Error E = isValidMachOCannonicalName(NewSection.SectionName)) in handleArgs()
420 if (Error E = addSection(NewSection, Obj)) in handleArgs()
424 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs() local
425 if (Error E = isValidMachOCannonicalName(NewSection.SectionName)) in handleArgs()
427 if (Error E = updateSection(NewSection, Obj)) in handleArgs()