Home
last modified time | relevance | path

Searched refs:Section (Results 1 – 25 of 376) sorted by relevance

12345678910>>...16

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp46 if (!Section || Section->getKind().isText() || in isDwarfSection()
47 Section->getKind().isWriteable()) in isDwarfSection()
49 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection()
50 Section == FI->getDwarfInfoSection() || in isDwarfSection()
52 Section == FI->getDwarfFrameSection() || in isDwarfSection()
53 Section == FI->getDwarfAddrSection() || in isDwarfSection()
54 Section == FI->getDwarfRangesSection() || in isDwarfSection()
56 Section == FI->getDwarfLocSection() || in isDwarfSection()
57 Section == FI->getDwarfStrSection() || in isDwarfSection()
58 Section == FI->getDwarfLineSection() || in isDwarfSection()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp25 Section::~Section() = default;
45 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument
51 commonSectionMapping(IO, Section); in sectionMapping()
61 commonSectionMapping(IO, Section); in sectionMapping()
69 commonSectionMapping(IO, Section); in sectionMapping()
79 commonSectionMapping(IO, Section); in sectionMapping()
87 commonSectionMapping(IO, Section); in sectionMapping()
93 commonSectionMapping(IO, Section); in sectionMapping()
99 commonSectionMapping(IO, Section); in sectionMapping()
164 IO &IO, std::unique_ptr<WasmYAML::Section> &Section) { in mapping() argument
[all …]
H A DWasmEmitter.cpp159 writeStringRef(Section.Name, OS); in writeSectionContent()
171 writeStringRef(Section.Name, OS); in writeSectionContent()
177 if (Section.SymbolTable.size()) { in writeSectionContent()
218 if (Section.SegmentInfos.size()) { in writeSectionContent()
241 if (Section.Comdats.size()) { in writeSectionContent()
259 writeStringRef(Section.Name, OS); in writeSectionContent()
273 if (Section.GlobalNames.size()) { in writeSectionContent()
303 writeStringRef(Section.Name, OS); in writeSectionContent()
304 int Fields = int(!Section.Languages.empty()) + int(!Section.Tools.empty()) + in writeSectionContent()
325 writeStringRef(Section.Name, OS); in writeSectionContent()
[all …]
H A DELFYAML.cpp1237 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument
1254 (!Section.ShOffset && !Section.ShSize && !Section.ShName && in commonSectionMapping()
1255 !Section.ShFlags && !Section.ShType && !Section.ShAddrAlign)); in commonSectionMapping()
1265 commonSectionMapping(IO, Section); in sectionMapping()
1270 commonSectionMapping(IO, Section); in sectionMapping()
1276 if (Section.ContentBuf) { in sectionMapping()
1277 if (Section.Content) in sectionMapping()
1279 Section.Content = yaml::BinaryRef(*Section.ContentBuf); in sectionMapping()
1304 (!Section.NBucket.hasValue() && !Section.NChain.hasValue())); in sectionMapping()
1451 if (auto *S = dyn_cast<ELFYAML::Section>(Section.get())) in mapping()
[all …]
H A DELFEmitter.cpp791 ELFYAML::Section *Sec = cast<ELFYAML::Section>(D.get()); in initSectionHeaders()
956 if (Sym.Section) in toELFSymbols()
1157 const ELFYAML::Section *S = cast<ELFYAML::Section>(C); in getPhdrFragments()
1256 if (Section.Info) in writeSectionContent()
1282 const bool IsDynamic = Section.Link && (*Section.Link == ".dynsym"); in writeSectionContent()
1437 if (!Section.Libs) in writeSectionContent()
1488 if (!Section.Bucket) in writeSectionContent()
1491 if (!Section.Bucket) in writeSectionContent()
1514 if (Section.Info) in writeSectionContent()
1559 if (Section.Info) in writeSectionContent()
[all …]
H A DMachOYAML.cpp291 MachOYAML::Section &Section) { in mapping() argument
294 IO.mapRequired("addr", Section.addr); in mapping()
295 IO.mapRequired("size", Section.size); in mapping()
297 IO.mapRequired("align", Section.align); in mapping()
300 IO.mapRequired("flags", Section.flags); in mapping()
310 MachOYAML::Section &Section) { in validate() argument
311 if (Section.content && Section.size < Section.content->binary_size()) in validate()
460 IO.mapRequired("addr", Section.addr); in mapping()
461 IO.mapRequired("size", Section.size); in mapping()
475 IO.mapRequired("addr", Section.addr); in mapping()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIASectionContrib.cpp19 : 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()
54 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress()
59 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength()
67 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_code); in hasCode()
79 return PrivateGetDIAValue(Section, in hasUninitializedData()
100 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_share); in isShared()
108 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_read); in isReadable()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugSubsectionVisitor.cpp55 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
61 if (auto EC = Section.initialize(Reader)) 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
73 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
78 DebugFrameDataSubsectionRef Section; in visitDebugSubsection() local
79 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
81 return V.visitFrameData(Section, State); in visitDebugSubsection()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local
44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local
78 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
82 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
86 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
90 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
94 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
269 Section, Offset, Value, Type, Addend, SymOffset, SectionID); in resolveMIPSN32Relocation()
307 uint8_t *TargetPtr = Section.getAddressWithOffset(Offset); in resolveMIPSO32Relocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h38 for (const SectionEntry &Section : Sections) in getImageBase() local
44 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()
148 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() local
161 StubOffset = Section.getStubOffset(); in generateRelocationStub()
164 Section.advanceStubOffset(getMaxStubSize()); in generateRelocationStub()
211 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
212 uintptr_t ObjTarget = Section.getObjAddress() + Offset; in processRelocationRef()
296 const object::SectionRef &Section = SectionPair.first; in finalizeLoad() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h182 struct Section { struct
184 virtual ~Section();
190 struct CustomSection : Section { argument
269 struct TypeSection : Section {
299 struct TableSection : Section {
319 struct TagSection : Section {
349 struct StartSection : Section {
359 struct ElemSection : Section {
369 struct CodeSection : Section {
379 struct DataSection : Section {
[all …]
H A DELFYAML.h139 Optional<StringRef> Section; member
222 struct Section : public Chunk { struct
371 struct NoBitsSection : Section {
377 struct NoteSection : Section {
389 struct HashSection : Section {
538 struct SymverSection : Section {
558 struct VerdefSection : Section {
571 struct GroupSection : Section {
608 struct RelrSection : Section {
656 struct MipsABIFlags : Section {
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp476 ExportSection Section; in NormalizedTBD() local
524 llvm::sort(Section.Symbols); in NormalizedTBD()
525 llvm::sort(Section.Classes); in NormalizedTBD()
526 llvm::sort(Section.ClassEHs); in NormalizedTBD()
527 llvm::sort(Section.IVars); in NormalizedTBD()
529 llvm::sort(Section.TLVSymbols); in NormalizedTBD()
543 UndefinedSection Section; in NormalizedTBD() local
581 llvm::sort(Section.Symbols); in NormalizedTBD()
582 llvm::sort(Section.Classes); in NormalizedTBD()
583 llvm::sort(Section.ClassEHs); in NormalizedTBD()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DConstantPools.cpp67 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool()
76 return ConstantPools[Section]; in getOrCreateConstantPool()
82 Streamer.SwitchSection(Section); in emitConstantPool()
90 MCSection *Section = CPI.first; in emitAll() local
93 emitConstantPool(Streamer, Section, CP); in emitAll()
98 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local
99 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection()
100 emitConstantPool(Streamer, Section, *CP); in emitForCurrentSection()
104 MCSection *Section = Streamer.getCurrentSectionOnly(); in clearCacheForCurrentSection() local
105 if (ConstantPool *CP = getConstantPool(Section)) in clearCacheForCurrentSection()
[all …]
H A DWasmObjectWriter.cpp65 MCSectionWasm *Section; member
126 MCSectionWasm *Section; member
132 : Name(Name), Section(Section), OutputContentsOffset(0), in WasmCustomSection()
790 endSection(Section); in writeTypeSection()
836 endSection(Section); in writeImportSection()
850 endSection(Section); in writeFunctionSection()
866 endSection(Section); in writeTagSection()
903 endSection(Section); in writeGlobalSection()
921 endSection(Section); in writeTableSection()
938 endSection(Section); in writeExportSection()
[all …]
H A DWinCOFFObjectWriter.cpp305 Section->Symbol = Symbol; in defineSection()
306 Symbol->Section = Section; in defineSection()
315 COMDATSymbol->Section = Section; in defineSection()
372 if (Sym->Section && Sym->Section != Sec) in DefineSymbol()
379 Sym->Section = nullptr; in DefineSymbol()
406 Sym->Section = Sec; in DefineSymbol()
575 for (auto &Section : Arr) { in writeSectionHeaders() local
938 Section.Number = I; in assignSectionNumbers()
949 Assign(*Section); in assignSectionNumbers()
952 Assign(*Section); in assignSectionNumbers()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp337 for (const auto &Section : Sections) { in resolveX86_64Relocation() local
338 if (Section.getName() == ".got") { in resolveX86_64Relocation()
639 for (auto &Section : Obj.sections()) { in findPPC64TOCSection() local
1135 resolveRelocation(Section, Offset, in resolveAArch64Branch()
1144 Section.getAddressWithOffset(Section.getStubOffset())); in resolveAArch64Branch()
1169 resolveRelocation(Section, Offset, in resolveAArch64Branch()
1304 Section, Offset, in processRelocationRef()
1313 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef()
1369 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef()
1464 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Core/
H A DSection.cpp28 const char *Section::GetTypeAsCString() const { in GetTypeAsCString()
154 Section::Section(const ModuleSP &module_sp, ObjectFile *obj_file, in Section() function in Section
175 Section::Section(const lldb::SectionSP &parent_section_sp, in Section() function in Section
199 Section::~Section() { in ~Section()
203 addr_t Section::GetFileAddress() const { in GetFileAddress()
228 lldb::addr_t Section::GetOffset() const { in GetOffset()
321 void Section::DumpName(llvm::raw_ostream &s) const { in DumpName()
343 bool Section::IsDescendant(const Section *section) { in IsDescendant()
368 uint32_t Section::GetPermissions() const { in GetPermissions()
492 Section *child_section = sect_iter->get(); in FindSectionByName()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/wasm/
H A DWasmObjcopy.cpp22 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()
36 static bool isCommentSection(const Section &Sec) { in isCommentSection()
42 for (const Section &Sec : Obj.Sections) { in dumpSectionToFile()
65 RemovePred = [&Config](const Section &Sec) { in removeSections()
71 RemovePred = [RemovePred](const Section &Sec) { in removeSections()
77 RemovePred = [RemovePred](const Section &Sec) { in removeSections()
84 RemovePred = [&Config](const Section &Sec) { in removeSections()
92 RemovePred = [&Config](const Section &Sec) { in removeSections()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DWin64EHDumper.cpp135 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol()
191 for (const auto &Section : COFF.sections()) { in getSectionContaining() local
192 uint64_t Address = Section.getAddress(); in getSectionContaining()
193 uint64_t Size = Section.getSize(); in getSectionContaining()
196 return COFF.getCOFFSection(Section); in getSectionContaining()
309 formatSymbol(Ctx, Section, LSDAOffset, in printUnwindInfo()
320 const coff_section *Section, in printRuntimeFunction() argument
324 printRuntimeFunctionEntry(Ctx, Section, SectionOffset, RF); in printRuntimeFunction()
354 for (const auto &Section : Ctx.COFF.sections()) { in printData() local
356 if (Expected<StringRef> NameOrErr = Section.getName()) in printData()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DObject.cpp56 for (const Section &Sec : Sections) { in markSymbols()
68 void Object::addSections(ArrayRef<Section> NewSections) { in addSections()
69 for (Section S : NewSections) { in addSections()
77 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections()
79 for (Section &S : Sections) { in updateSections()
85 const Section *Object::findSection(ssize_t UniqueId) const { in findSection()
89 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections()
91 auto RemoveAssociated = [&AssociatedSections](const Section &Sec) { in removeSections()
96 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
120 void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) { in truncateSections()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBSymbolData.cpp27 if (auto Section = RawSymbol->getAddressSection()) in getLineNumbers() local
29 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers()
49 while (auto Section = SecContribs->getNext()) { in getCompilandId() local
50 if (Section->getAddressSection() == DataSection && in getCompilandId()
51 Section->getAddressOffset() <= DataOffset && in getCompilandId()
52 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId()
53 return Section->getCompilandId(); in getCompilandId()
/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Core/
H A DSection.h31 class Section; variable
54 size_t FindSectionIndex(const Section *sect);
96 class Section : public std::enable_shared_from_this<Section>,
102 Section(const lldb::ModuleSP &module_sp, ObjectFile *obj_file,
110 Section(const lldb::SectionSP &parent_section_sp, // NULL for top level
120 ~Section();
122 static int Compare(const Section &a, const Section &b);
168 bool IsDescendant(const Section *section);
271 Section(const Section &) = delete;
272 const Section &operator=(const Section &) = delete;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DSpecialCaseList.cpp134 StringRef Section = "*"; in parse() local
150 Section = I->slice(1, I->size() - 1); in parse()
153 Regex CheckRE(Section); in parse()
179 if (SectionsMap.find(Section) == SectionsMap.end()) { in parse()
182 if (!M->insert(std::string(Section), LineNo, REError)) { in parse()
187 SectionsMap[Section] = Sections.size(); in parse()
191 auto &Entry = Sections[SectionsMap[Section]].Entries[Prefix][Category]; in parse()
204 bool SpecialCaseList::inSection(StringRef Section, StringRef Prefix, in inSection() argument
206 return inSectionBlame(Section, Prefix, Query, Category); in inSection()
209 unsigned SpecialCaseList::inSectionBlame(StringRef Section, StringRef Prefix, in inSectionBlame() argument
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp215 return addressForRVA(RVA, Section, Offset); in addressForVA()
220 Section = 0; in addressForRVA()
231 for (; Section < Dbi->getSectionHeaders().size(); ++Section) { in addressForRVA()
232 auto &Sec = Dbi->getSectionHeaders()[Section]; in addressForRVA()
242 uint32_t Section; in findSymbolByAddress() local
244 addressForVA(Address, Section, Offset); in findSymbolByAddress()
250 uint32_t Section; in findSymbolByRVA() local
252 addressForRVA(RVA, Section, Offset); in findSymbolByRVA()
375 if (Section <= 0) in getRVAFromSectOffset()
383 if (Section > MaxSection + 1) in getRVAFromSectOffset()
[all …]

12345678910>>...16