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