Home
last modified time | relevance | path

Searched refs:getSection (Results 1 – 25 of 218) sorted by relevance

123456789

/external/llvm/include/llvm/Object/
DELFObjectFile.h252 return *EF.getSection(Rel.d.a); in getRelSection()
317 const Elf_Shdr *getSection(DataRefImpl Sec) const { in getSection() function
367 const Elf_Shdr *SymTableSec = *EF.getSection(Sym.d.a); in getSymbolName()
368 const Elf_Shdr *StringTableSec = *EF.getSection(SymTableSec->sh_link); in getSymbolName()
375 return getSection(Sec)->sh_flags; in getSectionFlags()
380 return getSection(Sec)->sh_type; in getSectionType()
412 const Elf_Shdr *SymTab = *EF.getSection(Symb.d.a); in getSymbolAddress()
416 EF.getSection(ESym, SymTab, ShndxTable); in getSymbolAddress()
536 ErrorOr<const Elf_Shdr *> ESecOrErr = EF.getSection(ESym, SymTab, ShndxTable); in getSymbolSection()
553 const Elf_Shdr *SymTab = *EF.getSection(Symb.d.a); in getSymbolSection()
[all …]
DELF.h195 ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
198 ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const;
235 ELFFile<ELFT>::getSection(const Elf_Sym *Sym, const Elf_Shdr *SymTab, in getSection() function
239 return getSection(getExtendedSymbolTableIndex(Sym, SymTab, ShndxTable)); in getSection()
243 return getSection(Sym->st_shndx); in getSection()
373 ErrorOr<const Elf_Shdr *> StrTabSecOrErr = getSection(StringTableIndex); in ELFFile()
407 ErrorOr<const Elf_Shdr *> Sec = getSection(Section); in getEntry()
423 ELFFile<ELFT>::getSection(uint32_t Index) const { in getSection() function
461 ErrorOr<const Elf_Shdr *> SymTableOrErr = getSection(Section.sh_link); in getSHNDXTable()
478 ErrorOr<const Elf_Shdr *> SectionOrErr = getSection(Sec.sh_link); in getStringTableForSymtab()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DELFWriter.h154 ELFSection &getSection(const std::string &Name, unsigned Type,
170 return getSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0, 1); in getNonExecStackSection()
174 return getSection(".symtab", ELF::SHT_SYMTAB, 0); in getSymbolTableSection()
178 return getSection(".strtab", ELF::SHT_STRTAB, 0, 1); in getStringTableSection()
182 return getSection(".shstrtab", ELF::SHT_STRTAB, 0, 1); in getSectionHeaderStringTableSection()
186 return getSection("", ELF::SHT_NULL, 0); in getNullSection()
DELFWriter.cpp191 return getSection(Data->getSectionName(), Data->getType(), in getDataSection()
197 return getSection(BSS->getSectionName(), BSS->getType(), BSS->getFlags(), 4); in getBSSSection()
203 return getSection(Ctor->getSectionName(), Ctor->getType(), Ctor->getFlags()); in getCtorSection()
209 return getSection(Dtor->getSectionName(), Dtor->getType(), Dtor->getFlags()); in getDtorSection()
216 return getSection(Text->getSectionName(), Text->getType(), Text->getFlags()); in getTextSection()
224 return getSection(JT->getSectionName(), JT->getType(), JT->getFlags(), in getJumpTableSection()
249 return getSection(CPSect->getSectionName(), CPSect->getType(), in getConstantPoolSection()
264 return getSection(SectionName, SectionType, 0, TEW->getPrefELFAlignment()); in getRelocSection()
371 getSection(S->getSectionName(), S->getType(), S->getFlags()); in EmitGlobal()
633 if (GV->getSection() == "llvm.metadata" || in EmitSpecialLLVMGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DELFObjectFile.h280 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection()
358 const Elf_Shdr *getSection(DataRefImpl Sec) const { in getSection() function
428 auto SymTabOrErr = EF.getSection(Sym.d.a); in getSymbolName()
432 auto StrTabOrErr = EF.getSection(SymTableSec->sh_link); in getSymbolName()
444 return getSection(Sec)->sh_flags; in getSectionFlags()
449 return getSection(Sec)->sh_type; in getSectionType()
454 return getSection(Sec)->sh_offset; in getSectionOffset()
486 auto SymTabOrErr = EF.getSection(Symb.d.a); in getSymbolAddress()
492 auto SectionOrErr = EF.getSection(ESym, SymTab, ShndxTable); in getSymbolAddress()
621 auto ESecOrErr = EF.getSection(ESym, SymTab, ShndxTable); in getSymbolSection()
[all …]
DELF.h248 Expected<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
251 Expected<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
254 Expected<const Elf_Shdr *> getSection(uint32_t Index) const;
255 Expected<const Elf_Shdr *> getSection(const StringRef SectionName) const;
275 getSection(typename ELFT::ShdrRange Sections, uint32_t Index) { in getSection() function
314 ELFFile<ELFT>::getSection(const Elf_Sym *Sym, const Elf_Shdr *SymTab, in getSection() function
319 return getSection(Sym, *SymsOrErr, ShndxTable); in getSection()
324 ELFFile<ELFT>::getSection(const Elf_Sym *Sym, Elf_Sym_Range Symbols, in getSection() function
332 return getSection(Index); in getSection()
497 auto SecOrErr = getSection(Section); in getEntry()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp108 TRACE("input section(" << GV->getSection() << ") "); in SelectSectionForGlobal()
142 << GV->getSection() << ") "); in getExplicitSectionGlobal()
154 StringRef Section = GV->getSection(); in getExplicitSectionGlobal()
156 return getContext().getELFSection(GV->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
159 return getContext().getELFSection(GV->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
190 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
192 << GVar->getSection() << '\n'); in isGlobalInSmallSection()
364 if (GVar->hasSection() && isSmallDataSection(GVar->getSection())) in selectSmallSectionForGlobal()
/external/swiftshader/third_party/LLVM/lib/Object/
DELFObjectFile.cpp307 return getSection(Rel.w.b); in getRelSection()
317 const Elf_Shdr *getSection(DataRefImpl index) const;
318 const Elf_Shdr *getSection(uint32_t index) const;
379 const Elf_Shdr *getSection(const Elf_Sym *symb) const;
446 ::getSection(const Elf_Sym *symb) const { in getSection() function in ELFObjectFile
448 return getSection(ExtendedSymbolTable.lookup(symb)); in getSection()
451 return getSection(symb->st_shndx); in getSection()
470 default: Section = getSection(symb); in getSymbolOffset()
504 default: Section = getSection(symb); in getSymbolAddress()
543 const Elf_Shdr *Section = getSection(symb); in getSymbolNMTypeChar()
[all …]
DMachOObjectFile.cpp309 MachOObjectFile::getSection(DataRefImpl DRI, in getSection() function in llvm::object::MachOObjectFile
378 getSection(DRI, Sect); in getSectionAddress()
392 getSection(DRI, Sect); in getSectionSize()
406 getSection(DRI, Sect); in getSectionContents()
420 getSection(DRI, Sect); in getSectionAlignment()
434 getSection(DRI, Sect); in isSectionText()
498 getSection(Sec, Sect); in getSectionRelEnd()
533 getSection(Sections[Rel.d.b], Sect); in getRelocation()
553 getSection(Sections[Rel.d.b], Sect); in getRelocationAddress()
607 getSection(Sections[Rel.d.b], Sect); in getRelocationAdditionalInfo()
DCOFFObjectFile.cpp122 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolOffset()
140 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolAddress()
192 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolSize()
225 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolNMTypeChar()
375 if (error_code ec = getSection(symb->SectionNumber, symb_sec)) return ec; in sectionContainsSymbol()
528 error_code COFFObjectFile::getSection(int32_t index, in getSection() function in COFFObjectFile
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp131 TRACE("input section(" << GO->getSection() << ") "); in SelectSectionForGlobal()
169 << GO->getSection() << ") "); in getExplicitSectionGlobal()
181 StringRef Section = GO->getSection(); in getExplicitSectionGlobal()
183 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
186 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
215 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
217 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
389 if (GVar->hasSection() && isSmallDataSection(GVar->getSection())) in selectSmallSectionForGlobal()
/external/swiftshader/third_party/LLVM/lib/MC/
DMachObjectWriter.cpp105 if (NextSD.getSection().isVirtualSection()) in getPaddingSize()
191 if (SD.getSection().isVirtualSection()) { in WriteSection()
202 const MCSectionMachO &Section = cast<MCSectionMachO>(SD.getSection()); in WriteSection()
377 cast<MCSectionMachO>(it->SectionData->getSection()); in BindIndirectSymbols()
394 cast<MCSectionMachO>(it->SectionData->getSection()); in BindIndirectSymbols()
429 SectionIndexMap[&it->getSection()] = Index; in ComputeSymbolTable()
472 MSD.SectionIndex = SectionIndexMap.lookup(&Symbol.getSection()); in ComputeSymbolTable()
505 MSD.SectionIndex = SectionIndexMap.lookup(&Symbol.getSection()); in ComputeSymbolTable()
575 const MCSection &SecA = SA.getSection(); in IsSymbolRefDifferenceFullyResolvedImpl()
576 const MCSection &SecB = FB.getParent()->getSection(); in IsSymbolRefDifferenceFullyResolvedImpl()
[all …]
DWinCOFFStreamer.cpp193 ? Symbol->getSection().getVariant() == MCSection::SV_COFF in EmitAssignment()
237 ? Symbol->getSection().getVariant() == MCSection::SV_COFF in EmitSymbolAttribute()
264 ? Symbol->getSection().getVariant() == MCSection::SV_COFF in BeginCOFFSymbolDef()
303 ? Symbol->getSection().getVariant() == MCSection::SV_COFF in EmitCommonSymbol()
311 ? Symbol->getSection().getVariant() == MCSection::SV_COFF in EmitLocalCommonSymbol()
DMCObjectWriter.cpp76 const MCSection &SecA = DataA.getSymbol().AliasedSymbol().getSection(); in IsSymbolRefDifferenceFullyResolvedImpl()
77 const MCSection &SecB = FB.getParent()->getSection(); in IsSymbolRefDifferenceFullyResolvedImpl()
DWinCOFFObjectWriter.cpp365 assert(SectionData.getSection().getVariant() == MCSection::SV_COFF in DefineSection()
369 static_cast<MCSectionCOFF const &>(SectionData.getSection()); in DefineSection()
408 SectionMap[&SectionData.getSection()] = coff_section; in DefineSection()
465 SectionMap[&SymbolData.Fragment->getParent()->getSection()]; in DefineSymbol()
649 assert(SectionMap.find(&SectionData->getSection()) != SectionMap.end() && in RecordRelocation()
654 COFFSection *coff_section = SectionMap[&SectionData->getSection()]; in RecordRelocation()
659 &SymA->getSymbol().getSection() != &SymB->getSymbol().getSection(); in RecordRelocation()
793 COFFSection *Sec = SectionMap[&i->getSection()]; in WriteObject()
DELFObjectWriter.cpp301 static_cast<const MCSectionELF&>(i->getSection()); in WriteSymbolTable()
356 static_cast<const MCSectionELF&>(ASymbol.getSection()); in SymbolToReloc()
370 static_cast<const MCSectionELF&>(F.getParent()->getSection()); in SymbolToReloc()
533 static_cast<const MCSectionELF &>(it->getSection()); in ComputeIndexMap()
542 static_cast<const MCSectionELF &>(it->getSection()); in ComputeIndexMap()
617 static_cast<const MCSectionELF&>(RefSymbol.getSection()); in ComputeSymbolTable()
685 static_cast<const MCSectionELF&>(SD.getSection()); in CreateRelocationSections()
713 static_cast<const MCSectionELF&>(SD.getSection()); in WriteRelocations()
862 static_cast<const MCSectionELF&>(it->getSection()); in CreateMetadataSections()
914 static_cast<const MCSectionELF&>(it->getSection()); in CreateIndexedSections()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Delf2yaml.cpp102 auto ShdrOrErr = Obj.getSection(Sym, SymTab, ShndxTable); in getSymbolName()
261 auto ShdrOrErr = Obj.getSection(Sym, SymTab, ShndxTable); in dumpSymbol()
289 auto StrTabSec = Obj.getSection(SymTab->sh_link); in dumpRelocation()
327 auto LinkSection = Obj.getSection(Shdr->sh_link); in dumpCommonSection()
346 auto InfoSection = Obj.getSection(Shdr->sh_info); in dumpCommonRelocationSection()
367 auto SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelSection()
394 auto SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelaSection()
449 auto SymtabOrErr = Obj.getSection(Shdr->sh_link); in dumpGroup()
476 auto sHdr = Obj.getSection(groupMembers[i]); in dumpGroup()
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp187 ErrorOr<const Elf_Shdr *> ShdrOrErr = Obj.getSection(Sym, SymTab, ShndxTable); in dumpSymbol()
212 ErrorOr<const Elf_Shdr *> StrTabSec = Obj.getSection(SymTab->sh_link); in dumpRelocation()
242 ErrorOr<const Elf_Shdr *> LinkSection = Obj.getSection(Shdr->sh_link); in dumpCommonSection()
261 ErrorOr<const Elf_Shdr *> InfoSection = Obj.getSection(Shdr->sh_info); in dumpCommonRelocationSection()
282 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelSection()
306 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelaSection()
359 ErrorOr<const Elf_Shdr *> SymtabOrErr = Obj.getSection(Shdr->sh_link); in dumpGroup()
383 ErrorOr<const Elf_Shdr *> sHdr = Obj.getSection(groupMembers[i]); in dumpGroup()
/external/llvm/lib/IR/
DGlobals.cpp98 setSection(GV->getSection()); in copyAttributesFrom()
131 StringRef GlobalValue::getSection() const { in getSection() function in GlobalValue
135 return GO->getSection(); in getSection()
138 return cast<GlobalObject>(this)->getSection(); in getSection()
/external/llvm/include/llvm/IR/
DGlobalObject.h66 bool hasSection() const { return !getSection().empty(); } in hasSection()
67 StringRef getSection() const { return Section; } in getSection() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DGlobalObject.h69 bool hasSection() const { return !getSection().empty(); } in hasSection()
70 StringRef getSection() const { return Section; } in getSection() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DGlobals.cpp124 setSection(Src->getSection()); in copyAttributesFrom()
156 StringRef GlobalValue::getSection() const { in getSection() function in GlobalValue
160 return GO->getSection(); in getSection()
163 return cast<GlobalObject>(this)->getSection(); in getSection()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DFunctionTest.cpp123 EXPECT_TRUE(F->getSection() == ".text.test"); in TEST()
129 EXPECT_TRUE(F->getSection() == ".text.test2"); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MachObjectWriter.cpp138 const MCSectionMachO &RefSec = cast<MCSectionMachO>(Symbol.getSection()); in canUseLocalRelocation()
318 const MCSection &Sec = Symbol->getSection(); in recordRelocation()
357 const MCSection &Sec = Symbol->getSection(); in recordRelocation()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
DObject.cpp387 setSection(SecTable.getSection(Info, "Info field value " + Twine(Info) + in initialize()
485 SecTable.getSection(Link, "Link field value " + Twine(Link) + in initialize()
695 GroupSec->addMember(SecTable.getSection( in initGroupSection()
703 const Elf_Shdr &Shdr = *unwrapOrError(ElfFile.getSection(SymTab->Index)); in initSymbolTable()
718 *unwrapOrError(ElfFile.getSection(SymTab->getShndxTable()->Index)); in initSymbolTable()
726 DefSection = Obj.sections().getSection( in initSymbolTable()
738 DefSection = Obj.sections().getSection( in initSymbolTable()
770 SectionBase *SectionTableRef::getSection(uint32_t Index, Twine ErrMsg) { in getSection() function in SectionTableRef
779 if (T *Sec = dyn_cast<T>(getSection(Index, IndexErrMsg))) in getSectionOfType()
909 ShstrIndex = unwrapOrError(ElfFile.getSection(0))->sh_link; in build()
[all …]

123456789