Lines Matching refs:NewSection
311 static Error addSection(const NewSectionInfo &NewSection, Object &Obj) { in addSection() argument
312 std::pair<StringRef, StringRef> Pair = NewSection.SectionName.split(','); in addSection()
316 Obj.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in addSection()
365 static Error updateSection(const NewSectionInfo &NewSection, Object &O) { in updateSection() argument
366 Expected<Section &> SecToUpdateOrErr = findSection(NewSection.SectionName, O); in updateSection()
372 if (NewSection.SectionData->getBufferSize() > Sec.Size) in updateSection()
376 Sec.Content = O.NewSectionsContents.save(NewSection.SectionData->getBuffer()); in updateSection()
428 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs() local
429 if (Error E = isValidMachOCannonicalName(NewSection.SectionName)) in handleArgs()
431 if (Error E = addSection(NewSection, Obj)) in handleArgs()
435 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs() local
436 if (Error E = isValidMachOCannonicalName(NewSection.SectionName)) in handleArgs()
438 if (Error E = updateSection(NewSection, Obj)) in handleArgs()