Home
last modified time | relevance | path

Searched refs:NewSection (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp263 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs() local
271 addSection(Obj, NewSection.SectionName, in handleArgs()
273 NewSection.SectionData->getBufferStart()), in handleArgs()
274 NewSection.SectionData->getBufferSize()), in handleArgs()
278 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs() local
280 return Sec.Name == NewSection.SectionName; in handleArgs()
285 NewSection.SectionName.str().c_str()); in handleArgs()
291 NewSection.SectionName.str().c_str()); in handleArgs()
292 if (ContentSize < NewSection.SectionData->getBufferSize()) in handleArgs()
296 It->setOwnedContents({NewSection.SectionData->getBufferStart(), in handleArgs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp311 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
372 if (NewSection.SectionData->getBufferSize() > Sec.Size) 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()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp124 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs() local
127 Sec.Name = NewSection.SectionName; in handleArgs()
130 llvm::StringRef(NewSection.SectionData->getBufferStart(), in handleArgs()
131 NewSection.SectionData->getBufferSize()); in handleArgs()
133 InputData, NewSection.SectionData->getBufferIdentifier()); in handleArgs()
H A DWasmObject.cpp22 Section NewSection, std::unique_ptr<MemoryBuffer> &&Content) { in addSectionWithOwnedContents() argument
23 Sections.push_back(NewSection); in addSectionWithOwnedContents()
H A DWasmObject.h36 void addSectionWithOwnedContents(Section NewSection,
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp234 Expected<SectionBase *> NewSection = AddSection(S); in replaceDebugSections() local
235 if (!NewSection) in replaceDebugSections()
236 return NewSection.takeError(); in replaceDebugSections()
238 FromTo[S] = *NewSection; in replaceDebugSections()
601 handleUserSection(const NewSectionInfo &NewSection, in handleUserSection() argument
605 NewSection.SectionData->getBufferSize()); in handleUserSection()
606 return F(NewSection.SectionName, Data); in handleUserSection()
663 OwnedDataSection &NewSection = in handleArgs() local
666 NewSection.Type = SHT_NOTE; in handleArgs()
673 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCStreamer.h431 MCSectionSubPair NewSection = I->first; in popSection() local
433 if (NewSection.first && OldSection != NewSection) in popSection()
434 changeSection(NewSection.first, NewSection.second); in popSection()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLink.h1425 void transferBlock(Block &B, Section &NewSection) { in transferBlock() argument
1427 if (&OldSection == &NewSection) in transferBlock()
1435 NewSection.addSymbol(*S); in transferBlock()
1438 NewSection.addBlock(B); in transferBlock()