Home
last modified time | relevance | path

Searched refs:SecIndex (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/
H A DCOFFLinkGraphBuilder.h53 void setGraphSymbol(COFFSectionIndex SecIndex, COFFSymbolIndex SymIndex, in setGraphSymbol() argument
57 if (!COFF::isReservedSectionNumber(SecIndex)) in setGraphSymbol()
58 SymbolSets[SecIndex].insert({Sym.getOffset(), &Sym}); in setGraphSymbol()
68 void setGraphBlock(COFFSectionIndex SecIndex, Block *B) { in setGraphBlock() argument
69 assert(!GraphBlocks[SecIndex] && "Duplicate section at index"); in setGraphBlock()
70 assert(!COFF::isReservedSectionNumber(SecIndex) && "Invalid section index"); in setGraphBlock()
71 GraphBlocks[SecIndex] = B; in setGraphBlock()
74 Block *getGraphBlock(COFFSectionIndex SecIndex) const { in getGraphBlock() argument
75 if (SecIndex <= 0 || in getGraphBlock()
76 SecIndex >= static_cast<COFFSectionIndex>(GraphSymbols.size())) in getGraphBlock()
[all …]
H A DELFLinkGraphBuilder.h80 void setGraphBlock(ELFSectionIndex SecIndex, Block *B) { in setGraphBlock() argument
81 assert(!GraphBlocks.count(SecIndex) && "Duplicate section at index"); in setGraphBlock()
82 GraphBlocks[SecIndex] = B; in setGraphBlock()
85 Block *getGraphBlock(ELFSectionIndex SecIndex) { in getGraphBlock() argument
86 auto I = GraphBlocks.find(SecIndex); in getGraphBlock()
302 for (ELFSectionIndex SecIndex = 0; SecIndex != Sections.size(); ++SecIndex) { in graphifySections() local
304 auto &Sec = Sections[SecIndex]; in graphifySections()
315 dbgs() << " " << SecIndex << ": \"" << *Name in graphifySections()
325 dbgs() << " " << SecIndex << ": \"" << *Name in graphifySections()
333 dbgs() << " " << SecIndex << ": Creating section for \"" << *Name in graphifySections()
[all …]
H A DCOFFLinkGraphBuilder.cpp126 for (COFFSectionIndex SecIndex = 1; in graphifySections() local
127 SecIndex <= static_cast<COFFSectionIndex>(Obj.getNumberOfSections()); in graphifySections()
128 SecIndex++) { in graphifySections()
129 Expected<const object::coff_section *> Sec = Obj.getSection(SecIndex); in graphifySections()
184 setGraphBlock(SecIndex, B); in graphifySections()
396 for (COFFSectionIndex SecIndex = 1; in calculateImplicitSizeOfSymbols() local
397 SecIndex <= static_cast<COFFSectionIndex>(Obj.getNumberOfSections()); in calculateImplicitSizeOfSymbols()
398 SecIndex++) { in calculateImplicitSizeOfSymbols()
399 auto &SymbolSet = SymbolSets[SecIndex]; in calculateImplicitSizeOfSymbols()
402 jitlink::Block *B = getGraphBlock(SecIndex); in calculateImplicitSizeOfSymbols()
H A DMachOLinkGraphBuilder.cpp130 auto SecIndex = Obj.getSectionIndex(SecRef.getRawDataRefImpl()); in createNormalizedSections() local
165 << ", align: " << NSec.Alignment << ", index: " << SecIndex in createNormalizedSections()
192 IndexToSection.insert(std::make_pair(SecIndex, std::move(NSec))); in createNormalizedSections()
319 unsigned SecIndex, Section &GraphSec, orc::ExecutorAddr Address, in addSectionStartSymAndBlock() argument
327 auto SecI = IndexToSection.find(SecIndex); in addSectionStartSymAndBlock()
403 auto SecIndex = KV.first; in graphifyRegularSymbols() local
424 NSec, std::move(SecIndexToSymbols[SecIndex]))) in graphifyRegularSymbols()
436 auto &SecNSymStack = SecIndexToSymbols[SecIndex]; in graphifyRegularSymbols()
448 addSectionStartSymAndBlock(SecIndex, *NSec.GraphSection, NSec.Address, in graphifyRegularSymbols()
487 addSectionStartSymAndBlock(SecIndex, *NSec.GraphSection, NSec.Address, in graphifyRegularSymbols()
H A DMachOLinkGraphBuilder.h196 void addSectionStartSymAndBlock(unsigned SecIndex, Section &GraphSec,
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DObjDumper.cpp107 unsigned SecIndex; in getSectionRefsByNameOrIndex() local
109 if (!Section.getAsInteger(0, SecIndex)) in getSectionRefsByNameOrIndex()
110 SecIndices.emplace(SecIndex, false); in getSectionRefsByNameOrIndex()
115 SecIndex = Obj.isELF() ? 0 : 1; in getSectionRefsByNameOrIndex()
121 auto IndexIt = SecIndices.find(SecIndex); in getSectionRefsByNameOrIndex()
126 SecIndex++; in getSectionRefsByNameOrIndex()
H A DARMEHABIPrinter.h504 std::optional<unsigned> SecIndex = in PrintExceptionTable() local
506 if (ErrorOr<StringRef> Name = FunctionAtAddress(Address, SecIndex)) in PrintExceptionTable()
577 std::optional<unsigned> SecIndex = in PrintIndexTable() local
579 if (ErrorOr<StringRef> Name = FunctionAtAddress(Address, SecIndex)) in PrintIndexTable()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp49 size_t SecIndex);
52 size_t SecIndex);
81 MachODumper::constructSectionCommon(SectionType Sec, size_t SecIndex) { in constructSectionCommon() argument
99 if (Expected<object::SectionRef> SecRef = Obj.getSection(SecIndex)) { in constructSectionCommon()
124 size_t SecIndex) { in constructSection() argument
125 Expected<MachOYAML::Section> TempSec = constructSectionCommon(Sec, SecIndex); in constructSection()
133 MachODumper::constructSection(MachO::section_64 Sec, size_t SecIndex) { in constructSection() argument
134 Expected<MachOYAML::Section> TempSec = constructSectionCommon(Sec, SecIndex); in constructSection()
H A Delf2yaml.cpp122 unsigned SecIndex = &Sec - &Sections[0]; in getUniquedSectionName() local
123 if (!SectionNames[SecIndex].empty()) in getUniquedSectionName()
124 return SectionNames[SecIndex]; in getUniquedSectionName()
136 std::string &Ret = SectionNames[SecIndex]; in getUniquedSectionName()
1166 unsigned SecIndex = Shdr - &Sections[0]; in dumpContentSection() local
1167 if (SecIndex != 0 || Shdr->sh_type != ELF::SHT_NULL) { in dumpContentSection()
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DELFObjectWriter.cpp1155 uint32_t SecIndex = SectionIndexMap.lookup(Member); in writeObject() local
1156 write(SecIndex); in writeObject()