Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp233 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs() local
235 const auto It = Config.SetSectionFlags.find(NewSection.SectionName); in handleArgs()
241 addSection(Obj, NewSection.SectionName, in handleArgs()
243 NewSection.SectionData->getBufferStart()), in handleArgs()
244 NewSection.SectionData->getBufferSize()), in handleArgs()
248 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs() local
250 return Sec.Name == NewSection.SectionName; in handleArgs()
255 NewSection.SectionName.str().c_str()); in handleArgs()
261 NewSection.SectionName.str().c_str()); in handleArgs()
262 if (ContentSize < NewSection.SectionData->getBufferSize()) in handleArgs()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp300 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()
[all …]
/openbsd-src/gnu/llvm/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.h35 void addSectionWithOwnedContents(Section NewSection,
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp217 Expected<SectionBase *> NewSection = AddSection(S); in replaceDebugSections() local
218 if (!NewSection) in replaceDebugSections()
219 return NewSection.takeError(); in replaceDebugSections()
221 FromTo[S] = *NewSection; in replaceDebugSections()
584 handleUserSection(const NewSectionInfo &NewSection, in handleUserSection() argument
587 NewSection.SectionData->getBufferStart()), in handleUserSection()
588 NewSection.SectionData->getBufferSize()); in handleUserSection()
589 return F(NewSection.SectionName, Data); in handleUserSection()
646 OwnedDataSection &NewSection = in handleArgs() local
649 NewSection.Type = SHT_NOTE; in handleArgs()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/MC/
H A DMCStreamer.h427 MCSectionSubPair NewSection = I->first; in popSection() local
429 if (NewSection.first && OldSection != NewSection) in popSection()
430 changeSection(NewSection.first, NewSection.second); in popSection()
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLink.h1332 void transferBlock(Block &B, Section &NewSection) { in transferBlock() argument
1334 if (&OldSection == &NewSection) in transferBlock()
1342 NewSection.addSymbol(*S); in transferBlock()
1345 NewSection.addBlock(B); in transferBlock()