| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | DebugLineSectionEmitter.h | 101 SectionDescriptor &Section) { in emitLineTablePrologue() argument 103 Section.emitIntVal(P.getVersion(), 2); in emitLineTablePrologue() 106 Section.emitIntVal(P.getAddressSize(), 1); in emitLineTablePrologue() 109 Section.emitIntVal(P.SegSelectorSize, 1); in emitLineTablePrologue() 113 Section.emitOffset(0xBADDEF); in emitLineTablePrologue() 115 uint64_t OffsetAfterPrologueLength = Section.OS.tell(); in emitLineTablePrologue() 116 emitLineTableProloguePayload(P, Section); in emitLineTablePrologue() 117 uint64_t OffsetAfterPrologueEnd = Section.OS.tell(); in emitLineTablePrologue() 120 Section.apply(OffsetAfterPrologueLength - in emitLineTablePrologue() 121 Section.getFormParams().getDwarfOffsetByteSize(), in emitLineTablePrologue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/ |
| H A D | NVPTXTargetStreamer.cpp | 50 const MCSection *Section) { in isDwarfSection() argument 53 if (!Section || Section->isText()) in isDwarfSection() 55 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection() 56 Section == FI->getDwarfInfoSection() || in isDwarfSection() 57 Section == FI->getDwarfMacinfoSection() || in isDwarfSection() 58 Section == FI->getDwarfFrameSection() || in isDwarfSection() 59 Section == FI->getDwarfAddrSection() || in isDwarfSection() 60 Section == FI->getDwarfRangesSection() || in isDwarfSection() 61 Section == FI->getDwarfARangesSection() || in isDwarfSection() 62 Section == FI->getDwarfLocSection() || in isDwarfSection() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | WasmYAML.cpp | 26 Section::~Section() = default; 46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument 47 IO.mapRequired("Type", Section.Type); in commonSectionMapping() 48 IO.mapOptional("Relocations", Section.Relocations); in commonSectionMapping() 49 IO.mapOptional("HeaderSecSizeEncodingLen", Section.HeaderSecSizeEncodingLen); in commonSectionMapping() 52 static void sectionMapping(IO &IO, WasmYAML::DylinkSection &Section) { in sectionMapping() argument 53 commonSectionMapping(IO, Section); in sectionMapping() 54 IO.mapRequired("Name", Section.Name); in sectionMapping() 55 IO.mapRequired("MemorySize", Section.MemorySize); in sectionMapping() 56 IO.mapRequired("MemoryAlignment", Section.MemoryAlignment); in sectionMapping() [all …]
|
| H A D | WasmEmitter.cpp | 33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, 38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section); 39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section); 40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section); 41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section); 42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section); 43 void writeSectionContent(raw_ostream &OS, WasmYAML::MemorySection &Section); 44 void writeSectionContent(raw_ostream &OS, WasmYAML::TagSection &Section); 45 void writeSectionContent(raw_ostream &OS, WasmYAML::GlobalSection &Section); 46 void writeSectionContent(raw_ostream &OS, WasmYAML::ExportSection &Section); [all …]
|
| H A D | ELFEmitter.cpp | 226 StringRef SecName, ELFYAML::Section *YAMLSec); 231 ELFYAML::Section *YAMLSec); 235 ELFYAML::Section *YAMLSec); 238 ELFYAML::Section *YAMLSec); 249 const ELFYAML::NoBitsSection &Section, 252 const ELFYAML::RawContentSection &Section, 255 const ELFYAML::RelocationSection &Section, 258 const ELFYAML::RelrSection &Section, 267 const ELFYAML::SymverSection &Section, 270 const ELFYAML::VerneedSection &Section, [all …]
|
| H A D | ELFYAML.cpp | 1368 IO.mapOptional("Section", Symbol.Section); in mapping() 1386 if (Symbol.Index && Symbol.Section) in validate() 1391 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument 1392 IO.mapOptional("Name", Section.Name, StringRef()); in commonSectionMapping() 1393 IO.mapRequired("Type", Section.Type); in commonSectionMapping() 1394 IO.mapOptional("Flags", Section.Flags); in commonSectionMapping() 1395 IO.mapOptional("Address", Section.Address); in commonSectionMapping() 1396 IO.mapOptional("Link", Section.Link); in commonSectionMapping() 1397 IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); in commonSectionMapping() 1398 IO.mapOptional("EntSize", Section.EntSize); in commonSectionMapping() [all …]
|
| H A D | MachOYAML.cpp | 328 void MappingTraits<MachOYAML::Section>::mapping(IO &IO, in mapping() 329 MachOYAML::Section &Section) { in mapping() argument 330 IO.mapRequired("sectname", Section.sectname); in mapping() 331 IO.mapRequired("segname", Section.segname); in mapping() 332 IO.mapRequired("addr", Section.addr); in mapping() 333 IO.mapRequired("size", Section.size); in mapping() 334 IO.mapRequired("offset", Section.offset); in mapping() 335 IO.mapRequired("align", Section.align); in mapping() 336 IO.mapRequired("reloff", Section.reloff); in mapping() 337 IO.mapRequired("nreloc", Section.nreloc); in mapping() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/ |
| H A D | DIASectionContrib.cpp | 19 : Session(PDBSession), Section(DiaSection) {} in DIASectionContrib() 23 if (FAILED(Section->get_compiland(&Symbol))) in getCompiland() 32 PrivateGetDIAValue(IDiaSectionContrib *Section, in PrivateGetDIAValue() argument 35 if (S_OK == (Section->*Method)(&Value)) in PrivateGetDIAValue() 42 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection); in getAddressSection() 46 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressOffset); in getAddressOffset() 50 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_virtualAddress); in getVirtualAddress() 54 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress() 59 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength() 63 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_notPaged); in isNotPaged() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldELFMips.cpp | 16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local 45 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation() 53 RuntimeDyldELFMips::evaluateMIPS32Relocation(const SectionEntry &Section, in evaluateMIPS32Relocation() argument 58 << format("%llx", Section.getAddressWithOffset(Offset)) in evaluateMIPS32Relocation() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugSubsectionVisitor.cpp | 54 DebugCrossModuleExportsSubsectionRef Section; in visitDebugSubsection() local 55 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 57 return V.visitCrossModuleExports(Section, State); in visitDebugSubsection() 60 DebugCrossModuleImportsSubsectionRef Section; in visitDebugSubsection() local 61 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 63 return V.visitCrossModuleImports(Section, State); in visitDebugSubsection() 66 DebugSymbolsSubsectionRef Section; in visitDebugSubsection() local 67 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() 69 return V.visitSymbols(Section, State); in visitDebugSubsection() 72 DebugStringTableSubsectionRef Section; in visitDebugSubsection() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| H A D | WasmYAML.h | 187 struct Section { struct 188 explicit Section(SectionType SecType) : Type(SecType) {} in Section() argument 189 virtual ~Section(); 196 struct CustomSection : Section { argument 198 : Section(wasm::WASM_SEC_CUSTOM), Name(Name) {} in CustomSection() 200 static bool classof(const Section *S) { in classof() 222 static bool classof(const Section *S) { in classof() 240 static bool classof(const Section *S) { in classof() 253 static bool classof(const Section *S) { in classof() 268 static bool classof(const Section *S) { in classof() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/TextAPI/ |
| H A D | TextStub.cpp | 276 static void mapping(IO &IO, ExportSection &Section) { in mapping() 281 IO.mapRequired("archs", Section.Architectures); in mapping() 283 IO.mapOptional("allowed-clients", Section.AllowableClients); in mapping() 285 IO.mapOptional("allowable-clients", Section.AllowableClients); in mapping() 286 IO.mapOptional("re-exports", Section.ReexportedLibraries); in mapping() 287 IO.mapOptional("symbols", Section.Symbols); in mapping() 288 IO.mapOptional("objc-classes", Section.Classes); in mapping() 290 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping() 291 IO.mapOptional("objc-ivars", Section.IVars); in mapping() 292 IO.mapOptional("weak-def-symbols", Section.WeakDefSymbols); in mapping() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.cpp | 258 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section, in resolveX86_64Relocation() argument 272 *Section.getAddressWithOffset(Offset) = TruncatedAddr; in resolveX86_64Relocation() 274 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation() 281 support::ulittle16_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation() 284 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation() 288 support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation() 291 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation() 301 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation() 304 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation() 308 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveX86_64Relocation() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | ProfileList.cpp | 90 StringRef Section = getSectionName(Kind); in getDefault() local 92 if (SCL->inSection(Section, "default", "allow")) in getDefault() 94 if (SCL->inSection(Section, "default", "skip")) in getDefault() 96 if (SCL->inSection(Section, "default", "forbid")) in getDefault() 105 ProfileList::inSection(StringRef Section, StringRef Prefix, in inSection() argument 107 if (SCL->inSection(Section, Prefix, Query, "allow")) in inSection() 109 if (SCL->inSection(Section, Prefix, Query, "skip")) in inSection() 111 if (SCL->inSection(Section, Prefix, Query, "forbid")) in inSection() 113 if (SCL->inSection(Section, Prefix, Query)) in inSection() 121 StringRef Section = getSectionName(Kind); in isFunctionExcluded() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | ConstantPools.cpp | 80 ConstantPool *AssemblerConstantPools::getConstantPool(MCSection *Section) { in getConstantPool() argument 81 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool() 89 AssemblerConstantPools::getOrCreateConstantPool(MCSection *Section) { in getOrCreateConstantPool() argument 90 return ConstantPools[Section]; in getOrCreateConstantPool() 93 static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, in emitConstantPool() argument 96 Streamer.switchSection(Section); in emitConstantPool() 104 MCSection *Section = CPI.first; in emitAll() local 107 emitConstantPool(Streamer, Section, CP); in emitAll() 112 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local 113 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection() [all …]
|
| H A D | GOFFObjectWriter.cpp | 281 void defineSectionSymbols(const MCSectionGOFF &Section); 294 void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { in defineSectionSymbols() argument 295 if (Section.isSD()) { in defineSectionSymbols() 296 GOFFSymbol SD(Section.getName(), Section.getOrdinal(), in defineSectionSymbols() 297 Section.getSDAttributes()); in defineSectionSymbols() 301 if (Section.isED()) { in defineSectionSymbols() 302 GOFFSymbol ED(Section.getName(), Section.getOrdinal(), in defineSectionSymbols() 303 Section.getParent()->getOrdinal(), Section.getEDAttributes()); in defineSectionSymbols() 304 ED.SectionLength = Asm.getSectionAddressSize(Section); in defineSectionSymbols() 308 if (Section.isPR()) { in defineSectionSymbols() [all …]
|
| H A D | WasmObjectWriter.cpp | 61 MCSectionWasm *Section; member 73 MCSection *Section; member 122 MCSectionWasm *Section; member 127 WasmCustomSection(StringRef Name, MCSectionWasm *Section) in WasmCustomSection() 128 : Name(Name), Section(Section) {} in WasmCustomSection() 255 void startSection(SectionBookkeeping &Section, unsigned SectionId); 256 void startCustomSection(SectionBookkeeping &Section, StringRef Name); 257 void endSection(SectionBookkeeping &Section); 364 void WasmObjectWriter::startSection(SectionBookkeeping &Section, in startSection() argument 369 Section.SizeOffset = W->OS.tell(); in startSection() [all …]
|
| H A D | MCGOFFStreamer.cpp | 30 static void registerSectionHierarchy(MCAssembler &Asm, MCSectionGOFF *Section) { in registerSectionHierarchy() argument 31 if (Section->isRegistered()) in registerSectionHierarchy() 33 if (Section->getParent()) in registerSectionHierarchy() 34 registerSectionHierarchy(Asm, Section->getParent()); in registerSectionHierarchy() 35 Asm.registerSection(*Section); in registerSectionHierarchy() 38 void MCGOFFStreamer::changeSection(MCSection *Section, uint32_t Subsection) { in changeSection() argument 40 static_cast<MCSectionGOFF *>(Section)); in changeSection() 41 MCObjectStreamer::changeSection(Section, Subsection); in changeSection()
|
| H A D | WinCOFFObjectWriter.cpp | 78 COFFSection *Section = nullptr; member in __anon3870acaf0111::COFFSymbol 166 int getSectionNumber(const MCSection &Section) const; 296 COFFSection *Section = createSection(MCSec.getName()); in defineSection() local 298 Section->Symbol = Symbol; in defineSection() 300 Symbol->Section = Section; in defineSection() 307 if (COMDATSymbol->Section) in defineSection() 309 COMDATSymbol->Section = Section; in defineSection() 320 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection() 321 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection() 324 Section->MCSection = &MCSec; in defineSection() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/ |
| H A D | LVBinaryReader.cpp | 148 for (const object::SectionRef &Section : Obj.sections()) { in mapVirtualAddress() local 150 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress() 156 dbgs() << "Index: " << format_decimal(Section.getIndex(), 3) << ", " in mapVirtualAddress() 157 << "Address: " << hexValue(Section.getAddress()) << ", " in mapVirtualAddress() 158 << "Size: " << hexValue(Section.getSize()) << ", " in mapVirtualAddress() 160 dbgs() << "isCompressed: " << Section.isCompressed() << ", " in mapVirtualAddress() 161 << "isText: " << Section.isText() << ", " in mapVirtualAddress() 162 << "isData: " << Section.isData() << ", " in mapVirtualAddress() 163 << "isBSS: " << Section.isBSS() << ", " in mapVirtualAddress() 164 << "isVirtual: " << Section.isVirtual() << "\n"; in mapVirtualAddress() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/ |
| H A D | WasmObjcopy.cpp | 22 using SectionPred = std::function<bool(const Section &Sec)>; 24 static bool isDebugSection(const Section &Sec) { in isDebugSection() 28 static bool isLinkerSection(const Section &Sec) { in isLinkerSection() 32 static bool isNameSection(const Section &Sec) { return Sec.Name == "name"; } in isNameSection() 36 static bool isCommentSection(const Section &Sec) { in isCommentSection() 42 for (const Section &Sec : Obj.Sections) { in dumpSectionToFile() 61 SectionPred RemovePred = [](const Section &) { return false; }; in removeSections() argument 65 RemovePred = [&Config](const Section &Sec) { in removeSections() 71 RemovePred = [RemovePred](const Section &Sec) { in removeSections() 77 RemovePred = [RemovePred](const Section &Sec) { in removeSections() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDataExtractor.h | 25 const DWARFSection *Section = nullptr; variable 32 DWARFDataExtractor(const DWARFObject &Obj, const DWARFSection &Section, in DWARFDataExtractor() argument 34 : DWARFDataExtractorBase(Section.Data, IsLittleEndian, AddressSize), in DWARFDataExtractor() 35 Obj(&Obj), Section(&Section) {} in DWARFDataExtractor() 41 Obj(Other.Obj), Section(Other.Section) {} in DWARFDataExtractor() 49 if (!Section) in getRelocatedValueImpl() 52 std::optional<RelocAddrEntry> E = Obj->find(*Section, *Off); in getRelocatedValueImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObject.cpp | 57 for (const Section &Sec : Sections) { in markSymbols() 69 void Object::addSections(ArrayRef<Section> NewSections) { in addSections() 70 for (Section S : NewSections) { in addSections() 78 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections() 80 for (Section &S : Sections) { in updateSections() 86 const Section *Object::findSection(ssize_t UniqueId) const { in findSection() 90 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections() 92 auto RemoveAssociated = [&AssociatedSections](const Section &Sec) { in removeSections() 97 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections() 121 void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) { in truncateSections() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBSymbolData.cpp | 26 if (auto Section = RawSymbol->getAddressSection()) in getLineNumbers() local 28 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers() 48 while (auto Section = SecContribs->getNext()) { in getCompilandId() local 49 if (Section->getAddressSection() == DataSection && in getCompilandId() 50 Section->getAddressOffset() <= DataOffset && in getCompilandId() 51 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId() 52 return Section->getCompilandId(); in getCompilandId()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | Win64EHDumper.cpp | 163 const coff_section *Section, uint64_t Offset, in formatSymbol() argument 170 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol() 209 const coff_section *Section, in resolveRelocation() argument 215 Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) in resolveRelocation() 232 for (const auto &Section : COFF.sections()) { in getSectionContaining() local 233 uint64_t Address = Section.getAddress(); in getSectionContaining() 234 uint64_t Size = Section.getSize(); in getSectionContaining() 237 return COFF.getCOFFSection(Section); in getSectionContaining() 245 const coff_section *Section, in printRuntimeFunctionEntry() argument 249 formatSymbol(Ctx, Section, Offset + 0, RF.StartAddress)); in printRuntimeFunctionEntry() [all …]
|