| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/MCTargetDesc/ |
| H A D | NVPTXTargetStreamer.cpp | 42 if (!Section || Section->getKind().isText() || in isDwarfSection() 43 Section->getKind().isWriteable()) in isDwarfSection() 45 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection() 46 Section == FI->getDwarfInfoSection() || in isDwarfSection() 48 Section == FI->getDwarfFrameSection() || in isDwarfSection() 49 Section == FI->getDwarfAddrSection() || in isDwarfSection() 50 Section == FI->getDwarfRangesSection() || in isDwarfSection() 52 Section == FI->getDwarfLocSection() || in isDwarfSection() 53 Section == FI->getDwarfStrSection() || in isDwarfSection() 54 Section == FI->getDwarfLineSection() || in isDwarfSection() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/ObjectYAML/ |
| H A D | WasmYAML.cpp | 26 Section::~Section() = default; 46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument 52 commonSectionMapping(IO, Section); in sectionMapping() 62 commonSectionMapping(IO, Section); in sectionMapping() 68 commonSectionMapping(IO, Section); in sectionMapping() 78 commonSectionMapping(IO, Section); in sectionMapping() 84 commonSectionMapping(IO, Section); in sectionMapping() 89 commonSectionMapping(IO, Section); in sectionMapping() 94 commonSectionMapping(IO, Section); in sectionMapping() 144 IO &IO, std::unique_ptr<WasmYAML::Section> &Section) { in mapping() argument [all …]
|
| H A D | ELFYAML.cpp | 26 ELFYAML::Section::~Section() = default; 823 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument 825 IO.mapRequired("Type", Section.Type); in commonSectionMapping() 835 commonSectionMapping(IO, Section); in sectionMapping() 837 IO.mapOptional("Size", Section.Size, Hex64(Section.Content.binary_size())); in sectionMapping() 841 commonSectionMapping(IO, Section); in sectionMapping() 846 commonSectionMapping(IO, Section); in sectionMapping() 866 commonSectionMapping(IO, Section); in sectionMapping() 886 IO &IO, std::unique_ptr<ELFYAML::Section> &Section) { in mapping() argument 889 sectionType = Section->Type; in mapping() [all …]
|
| H A D | MachOYAML.cpp | 278 MachOYAML::Section &Section) { in mapping() argument 281 IO.mapRequired("addr", Section.addr); in mapping() 282 IO.mapRequired("size", Section.size); in mapping() 284 IO.mapRequired("align", Section.align); in mapping() 287 IO.mapRequired("flags", Section.flags); in mapping() 437 IO.mapRequired("addr", Section.addr); in mapping() 438 IO.mapRequired("size", Section.size); in mapping() 440 IO.mapRequired("align", Section.align); in mapping() 443 IO.mapRequired("flags", Section.flags); in mapping() 452 IO.mapRequired("addr", Section.addr); in mapping() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/DIA/ |
| H A D | DIASectionContrib.cpp | 20 : Session(PDBSession), Section(DiaSection) {} in DIASectionContrib() 24 if (FAILED(Section->get_compiland(&Symbol))) in getCompiland() 33 PrivateGetDIAValue(IDiaSectionContrib *Section, in PrivateGetDIAValue() argument 36 if (S_OK == (Section->*Method)(&Value)) in PrivateGetDIAValue() 55 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress() 60 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength() 68 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_code); in hasCode() 80 return PrivateGetDIAValue(Section, in hasUninitializedData() 101 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_share); in isShared() 109 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_read); in isReadable() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldELFMips.cpp | 17 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local 34 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local 45 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local 79 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation() 83 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation() 87 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation() 91 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation() 95 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation() 270 Section, Offset, Value, Type, Addend, SymOffset, SectionID); in resolveMIPSN32Relocation() 308 uint8_t *TargetPtr = Section.getAddressWithOffset(Offset); in resolveMIPSO32Relocation() [all …]
|
| H A D | RuntimeDyldCOFFX86_64.h | 39 for (const SectionEntry &Section : Sections) in getImageBase() local 45 if (Section.getLoadAddress() != 0) in getImageBase() 88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local 89 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation() 149 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() local 162 StubOffset = Section.getStubOffset(); in generateRelocationStub() 165 Section.advanceStubOffset(getMaxStubSize()); in generateRelocationStub() 212 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local 213 uintptr_t ObjTarget = Section.getObjAddress() + Offset; in processRelocationRef() 287 const SectionRef &Section = SectionPair.first; in finalizeLoad() local [all …]
|
| H A D | RuntimeDyldMachOARM.h | 65 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() local 206 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local 291 const SectionRef &Section) { in finalizeSection() argument 293 Section.getName(Name); in finalizeSection() 308 SectionEntry &Section = Sections[RE.SectionID]; in processBranchRelocation() local 312 Addr = Section.getAddressWithOffset(i->second); in processBranchRelocation() 316 Stubs[Value] = Section.getStubOffset(); in processBranchRelocation() 324 Addr = Section.getAddressWithOffset(Section.getStubOffset()); in processBranchRelocation() 328 RE.SectionID, StubTargetAddr - Section.getAddress(), in processBranchRelocation() 335 Section.advanceStubOffset(getMaxStubSize()); in processBranchRelocation() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugSubsectionVisitor.cpp | 56 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 62 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 67 DebugSymbolsSubsectionRef Section; in visitDebugSubsection() local 68 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 70 return V.visitSymbols(Section, State); in visitDebugSubsection() 73 DebugStringTableSubsectionRef Section; in visitDebugSubsection() local 74 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 79 DebugFrameDataSubsectionRef Section; in visitDebugSubsection() local 80 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 82 return V.visitFrameData(Section, State); in visitDebugSubsection() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/ObjectYAML/ |
| H A D | WasmYAML.h | 166 struct Section { struct 168 virtual ~Section(); 174 struct CustomSection : Section { argument 227 struct TypeSection : Section { 257 struct TableSection : Section { 287 struct EventSection : Section { 307 struct StartSection : Section { 317 struct ElemSection : Section { 327 struct CodeSection : Section { 337 struct DataSection : Section { [all …]
|
| H A D | ELFYAML.h | 79 StringRef Section; member 94 StringRef Section; member 111 struct Section { struct 130 virtual ~Section(); 132 struct RawContentSection : Section { 143 struct NoBitsSection : Section { 153 struct Group : Section { 172 struct RelocationSection : Section { 183 struct MipsABIFlags : Section { 361 static void mapping(IO &IO, std::unique_ptr<ELFYAML::Section> &Section); in LLVM_YAML_IS_SEQUENCE_VECTOR() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.cpp | 323 if (Section.getName() == ".got") { in resolveX86_64Relocation() 571 for (auto &Section: Obj.sections()) { in findPPC64TOCSection() local 1056 resolveRelocation(Section, Offset, in resolveAArch64Branch() 1065 Section.getAddressWithOffset(Section.getStubOffset())); in resolveAArch64Branch() 1090 resolveRelocation(Section, Offset, in resolveAArch64Branch() 1223 Section, Offset, in processRelocationRef() 1232 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef() 1288 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef() 1383 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef() 1491 Section.getAddressWithOffset(Section.getStubOffset()), in processRelocationRef() [all …]
|
| H A D | RuntimeDyld.cpp | 483 const SectionRef &Section = *SI; in computeTotalAllocSize() local 489 uint64_t DataSize = Section.getSize(); in computeTotalAllocSize() 492 bool IsCode = Section.isText(); in computeTotalAllocSize() 496 if (auto EC = Section.getName(Name)) in computeTotalAllocSize() 600 if (!(RelSecI == Section)) in computeSectionStubBufSize() 609 uint64_t DataSize = Section.getSize(); in computeSectionStubBufSize() 723 bool IsVirtual = Section.isVirtual(); in emitSection() 724 bool IsZeroInit = isZeroInit(Section); in emitSection() 726 uint64_t DataSize = Section.getSize(); in emitSection() 729 if (auto EC = Section.getName(Name)) in emitSection() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/MC/ |
| H A D | ConstantPools.cpp | 68 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool() 77 return ConstantPools[Section]; in getOrCreateConstantPool() 83 Streamer.SwitchSection(Section); in emitConstantPool() 91 MCSection *Section = CPI.first; in emitAll() local 94 emitConstantPool(Streamer, Section, CP); in emitAll() 99 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local 100 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection() 101 emitConstantPool(Streamer, Section, *CP); in emitForCurrentSection() 105 MCSection *Section = Streamer.getCurrentSectionOnly(); in clearCacheForCurrentSection() local 106 if (ConstantPool *CP = getConstantPool(Section)) in clearCacheForCurrentSection() [all …]
|
| H A D | WasmObjectWriter.cpp | 110 MCSectionWasm *Section; member 187 : Name(Name), Section(Section), OutputContentsOffset(0), in WasmCustomSection() 729 endSection(Section); in writeTypeSection() 775 endSection(Section); in writeImportSection() 789 endSection(Section); in writeFunctionSection() 809 endSection(Section); in writeGlobalSection() 825 endSection(Section); in writeEventSection() 842 endSection(Section); in writeExportSection() 864 endSection(Section); in writeElemSection() 894 endSection(Section); in writeCodeSection() [all …]
|
| H A D | MCContext.cpp | 285 Name += Section; in getMachOSection() 303 if (const MCSymbol *Group = Section->getGroup()) in renameELFSection() 306 unsigned UniqueID = Section->getUniqueID(); in renameELFSection() 311 Section)) in renameELFSection() 314 const_cast<MCSectionELF *>(Section)->setSectionName(CachedName); in renameELFSection() 324 MCSymbol *&Sym = Symbols[Section]; in createELFSectionImpl() 422 MCSectionCOFF *MCContext::getCOFFSection(StringRef Section, in getCOFFSection() argument 436 COFFSectionKey T{Section, COMDATSymName, Selection, UniqueID}; in getCOFFSection() 454 MCSectionCOFF *MCContext::getCOFFSection(StringRef Section, in getCOFFSection() argument 462 MCSectionCOFF *MCContext::getCOFFSection(StringRef Section) { in getCOFFSection() argument [all …]
|
| H A D | WinCOFFObjectWriter.cpp | 298 Section->Symbol = Symbol; in defineSection() 299 Symbol->Section = Section; in defineSection() 308 COMDATSymbol->Section = Section; in defineSection() 323 Section->MCSection = &MCSec; in defineSection() 364 if (Sym->Section && Sym->Section != Sec) in DefineSymbol() 396 Sym->Section = Sec; in DefineSymbol() 565 for (auto &Section : Arr) { in writeSectionHeaders() local 875 Section.Number = I; in assignSectionNumbers() 886 Assign(*Section); in assignSectionNumbers() 889 Assign(*Section); in assignSectionNumbers() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Core/ |
| H A D | Section.cpp | 30 const char *Section::GetTypeAsCString() const { in GetTypeAsCString() 146 Section::Section(const ModuleSP &module_sp, ObjectFile *obj_file, in Section() function in Section 167 Section::Section(const lldb::SectionSP &parent_section_sp, in Section() function in Section 191 Section::~Section() { in ~Section() 195 addr_t Section::GetFileAddress() const { in GetFileAddress() 220 lldb::addr_t Section::GetOffset() const { in GetOffset() 280 int Section::Compare(const Section &a, const Section &b) { in Compare() 339 void Section::DumpName(Stream *s) const { in DumpName() 361 bool Section::IsDescendant(const Section *section) { in IsDescendant() 388 uint32_t Section::GetPermissions() const { in GetPermissions() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/llvm-readobj/ |
| H A D | Win64EHDumper.cpp | 122 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol() 142 const coff_section *Section, in resolveRelocation() argument 148 Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) in resolveRelocation() 166 const coff_section *Section, in printRuntimeFunctionEntry() argument 271 formatSymbol(Ctx, Section, LSDAOffset, in printUnwindInfo() 282 const coff_section *Section, in printRuntimeFunction() argument 286 printRuntimeFunctionEntry(Ctx, Section, SectionOffset, RF); in printRuntimeFunction() 306 for (const auto &Section : Ctx.COFF.sections()) { in printData() local 308 Section.getName(Name); in printData() 313 const coff_section *PData = Ctx.COFF.getCOFFSection(Section); in printData() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBSymbolData.cpp | 28 if (auto Section = RawSymbol->getAddressSection()) in getLineNumbers() local 30 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers() 50 while (auto Section = SecContribs->getNext()) { in getCompilandId() local 51 if (Section->getAddressSection() == DataSection && in getCompilandId() 52 Section->getAddressOffset() <= DataOffset && in getCompilandId() 53 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId() 54 return Section->getCompilandId(); in getCompilandId()
|
| /freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDataExtractor.h | 23 const DWARFSection *Section = nullptr; variable 28 DWARFDataExtractor(const DWARFObject &Obj, const DWARFSection &Section, in DWARFDataExtractor() argument 30 : DataExtractor(Section.Data, IsLittleEndian, AddressSize), Obj(&Obj), in DWARFDataExtractor() 31 Section(&Section) {} in DWARFDataExtractor() 55 size_t size() const { return Section == nullptr ? 0 : Section->Data.size(); } in size()
|
| /freebsd-12.1/contrib/llvm/include/llvm/MC/ |
| H A D | MCContext.h | 389 MCSectionELF *getELFSection(const Twine &Section, unsigned Type, in getELFSection() argument 391 return getELFSection(Section, Type, Flags, 0, ""); in getELFSection() 394 MCSectionELF *getELFSection(const Twine &Section, unsigned Type, in getELFSection() argument 400 MCSectionELF *getELFSection(const Twine &Section, unsigned Type, in getELFSection() argument 407 MCSectionELF *getELFSection(const Twine &Section, unsigned Type, 412 MCSectionELF *getELFSection(const Twine &Section, unsigned Type, 430 void renameELFSection(MCSectionELF *Section, StringRef Name); 444 MCSectionCOFF *getCOFFSection(StringRef Section); 455 return getWasmSection(Section, K, nullptr); in getWasmSection() 460 return getWasmSection(Section, K, "", ~0, BeginSymName); in getWasmSection() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | SpecialCaseList.cpp | 133 StringRef Section = "*"; in parse() local 149 Section = I->slice(1, I->size() - 1); in parse() 152 Regex CheckRE(Section); in parse() 178 if (SectionsMap.find(Section) == SectionsMap.end()) { in parse() 181 if (!M->insert(Section, LineNo, REError)) { in parse() 186 SectionsMap[Section] = Sections.size(); in parse() 190 auto &Entry = Sections[SectionsMap[Section]].Entries[Prefix][Category]; in parse() 203 bool SpecialCaseList::inSection(StringRef Section, StringRef Prefix, in inSection() argument 205 return inSectionBlame(Section, Prefix, Query, Category); in inSection() 208 unsigned SpecialCaseList::inSectionBlame(StringRef Section, StringRef Prefix, in inSectionBlame() argument [all …]
|
| /freebsd-12.1/contrib/llvm/tools/llvm-objcopy/ELF/ |
| H A D | Object.cpp | 752 uint64_t SecSize = Section.Size ? Section.Size : 1; in sectionWithinSegment() 1435 Section.Index = Index++; in layoutSections() 1438 Section.Offset = in layoutSections() 1441 Offset = alignTo(Offset, Section.Align == 0 ? 1 : Section.Align); in layoutSections() 1442 Section.Offset = Offset; in layoutSections() 1444 Offset += Section.Size; in layoutSections() 1582 Section.NameIndex = Obj.SectionNames->findIndex(Section.Name); in finalize() 1583 Section.finalize(); in finalize() 1594 Section.accept(*SecWriter); in write() 1610 if ((Section.Flags & SHF_ALLOC) != 0 && Section.ParentSegment != nullptr) { in finalize() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Object/ |
| H A D | ELF.h | 261 Expected<StringRef> getSectionName(const Elf_Shdr *Section, 497 auto SecOrErr = getSection(Section); in getEntry() 507 if (sizeof(T) != Section->sh_entsize) in getEntry() 509 size_t Pos = Section->sh_offset + Entry * sizeof(T); in getEntry() 543 if (Section->sh_type != ELF::SHT_STRTAB) in getStringTable() 545 auto V = getSectionContentsAsArray<char>(Section); in getStringTable() 562 return getSHNDXTable(Section, *SectionsOrErr); in getSHNDXTable() 567 ELFFile<ELFT>::getSHNDXTable(const Elf_Shdr &Section, in getSHNDXTable() argument 569 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable() 618 return getSectionName(Section, *Table); in getSectionName() [all …]
|