Home
last modified time | relevance | path

Searched refs:SecName (Results 1 – 25 of 46) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/MC/COFF/
H A Dsection-comdat.s19 .section SecName, "dr", same_size, "Symbol3"
24 .section SecName, "dr", same_contents, "Symbol4"
29 .section SecName, "dr", associative, "assocSym"
34 .section SecName, "dr", largest, "Symbol6"
39 .section SecName, "dr", newest, "Symbol7"
/llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/
H A DDebugInfoLinker.h20 inline bool isDebugSection(StringRef SecName) { in isDebugSection() argument
21 return SecName.startswith(".debug") || SecName.startswith(".zdebug") || in isDebugSection()
22 SecName == ".gdb_index"; in isDebugSection()
H A Dllvm-dwarfutil.cpp148 Expected<StringRef> SecName = Sec.getName(); in setConfigToAddNewDebugSections() local
149 if (!SecName) in setConfigToAddNewDebugSections()
150 return SecName.takeError(); in setConfigToAddNewDebugSections()
152 if (isDebugSection(*SecName)) { in setConfigToAddNewDebugSections()
158 *SecName, MemoryBuffer::getMemBuffer(*SecData, *SecName, false))); in setConfigToAddNewDebugSections()
H A DDebugInfoLinker.cpp214 static bool knownByDWARFUtil(StringRef SecName) { in knownByDWARFUtil() argument
215 return llvm::StringSwitch<bool>(SecName) in knownByDWARFUtil()
/llvm-project-15.0.7/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp40 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
43 if (Sec.Name == SecName) { in dumpSectionToFile()
57 SecName.str().c_str()); in dumpSectionToFile()
115 StringRef SecName; in handleArgs() local
117 std::tie(SecName, FileName) = Flag.split("="); in handleArgs()
118 if (Error E = dumpSectionToFile(SecName, FileName, Obj)) in handleArgs()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DDebuggerSupportPlugin.cpp131 StringRef SecName; in startSynthesis() member
269 memcpy(Sec.sectname, SI.SecName.data(), SI.SecName.size()); in startSynthesis()
307 StringRef SegName, SecName; in completeSynthesisAndRegister() local
313 SecName = Sec->getName(); in completeSynthesisAndRegister()
317 SecName = Sec->getName().substr(SepPos + 1); in completeSynthesisAndRegister()
327 SecName = StringRef(CustomSecName.data(), 16); in completeSynthesisAndRegister()
339 memcpy(SecCmd.sectname, SecName.data(), SecName.size()); in completeSynthesisAndRegister()
H A DObjectFileInterface.cpp85 auto SecName = cantFail(Obj.getSectionName(Sec.getRawDataRefImpl())); in getMachOObjectFileSymbolInfo() local
86 if (MachOPlatform::isInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
138 if (auto SecName = Sec.getName()) { in getELFObjectFileSymbolInfo() local
139 if (ELFNixPlatform::isInitializerSection(*SecName)) { in getELFObjectFileSymbolInfo()
H A DELFNixPlatform.cpp274 bool ELFNixPlatform::isInitializerSection(StringRef SecName) { in isInitializerSection() argument
275 if (SecName.consume_front(InitArrayFuncSectionName) && in isInitializerSection()
276 (SecName.empty() || SecName[0] == '.')) in isInitializerSection()
H A DObjectLinkingLayer.cpp82 auto SecName = Sec.getName(); in hasELFInitSection() local
83 if (SecName.consume_front(".init_array") && in hasELFInitSection()
84 (SecName.empty() || SecName[0] == '.')) in hasELFInitSection()
H A DMachOPlatform.cpp925 for (auto &SecName : PlatformSections) { in registerObjectPlatformSections() local
926 auto *Sec = G.findSectionByName(SecName); in registerObjectPlatformSections()
933 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp278 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
282 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
297 SecName.str().c_str()); in dumpSectionToFile()
330 static Expected<Section &> findSection(StringRef SecName, Object &O) { in findSection() argument
332 std::tie(SegName, SecName) = SecName.split(","); in findSection()
342 [SecName](const std::unique_ptr<Section> &Sec) { in findSection()
343 return Sec->Sectname == SecName; in findSection()
348 SecName.str().c_str()); in findSection()
350 assert(FoundSec->get()->CanonicalName == (SegName + "," + SecName).str()); in findSection()
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCMachOStreamer.cpp143 StringRef SecName = MSec.getName(); in canGoAfterDWARF() local
145 if (SegName == "__LD" && SecName == "__compact_unwind") in canGoAfterDWARF()
149 if (SecName == "__jump_table") in canGoAfterDWARF()
152 if (SecName == "__pointers") in canGoAfterDWARF()
156 if (SegName == "__TEXT" && SecName == "__eh_frame") in canGoAfterDWARF()
159 if (SegName == "__DATA" && (SecName == "__nl_symbol_ptr" || in canGoAfterDWARF()
160 SecName == "__thread_ptr")) in canGoAfterDWARF()
162 if (SegName == "__LLVM" && SecName == "__cg_profile") in canGoAfterDWARF()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp138 static Error dumpDebugSection(StringRef SecName, DWARFContext &DCtx, in dumpDebugSection() argument
140 if (SecName == "__debug_abbrev") { in dumpDebugSection()
144 if (SecName == "__debug_aranges") in dumpDebugSection()
146 if (SecName == "__debug_info") { in dumpDebugSection()
150 if (SecName == "__debug_line") { in dumpDebugSection()
154 if (SecName.startswith("__debug_pub")) { in dumpDebugSection()
159 if (SecName == "__debug_ranges") in dumpDebugSection()
161 if (SecName == "__debug_str") in dumpDebugSection()
182 StringRef SecName(S->sectname); in extractSections() local
190 if (SecName.startswith("__debug_")) { in extractSections()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.cpp406 : Asm(AsmPrt), Name(SecName) { in BTFKindDataSec()
1371 StringRef SecName; in processGlobals() local
1373 SecName = Global.getSection(); in processGlobals()
1377 SecName = ".rodata"; in processGlobals()
1382 if (ProcessingMapDef != SecName.startswith(".maps")) in processGlobals()
1394 DataSecEntries[std::string(SecName)] = in processGlobals()
1410 if (SecName.startswith(".maps")) in processGlobals()
1448 if (SecName.empty()) in processGlobals()
1453 DataSecEntries[std::string(SecName)] = in processGlobals()
1544 StringRef SecName = F->getSection(); in processFuncPrototypes() local
[all …]
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp408 reportError("cannot use '" + SecName + in ELFState()
420 for (StringRef SecName : ImplicitSections) { in ELFState() local
421 if (DocSections.count(SecName)) in ELFState()
426 Sec->Name = SecName; in ELFState()
430 else if (SecName == ".dynsym") in ELFState()
432 else if (SecName == ".symtab") in ELFState()
658 if (SecName == ".strtab") in initImplicitHeader()
660 else if (SecName == ".dynstr") in initImplicitHeader()
664 else if (SecName == ".symtab") in initImplicitHeader()
666 else if (SecName == ".dynsym") in initImplicitHeader()
[all …]
H A DDWARFEmitter.cpp1008 DWARFYAML::getDWARFEmitterByName(StringRef SecName) { in getDWARFEmitterByName() argument
1011 std::function<Error(raw_ostream &, const DWARFYAML::Data &)>>(SecName) in getDWARFEmitterByName()
1028 SecName + " is not supported"); in getDWARFEmitterByName()
1073 for (StringRef SecName : DI.getNonEmptySectionNames()) in emitDebugSections() local
1075 emitDebugSectionImpl(DI, SecName, DebugSections)); in emitDebugSections()
H A DWasmEmitter.cpp603 StringRef SecName = ""; in writeWasm() local
605 SecName = S->Name; in writeWasm()
606 if (!Checker.isValidSectionOrder(Sec->Type, SecName)) { in writeWasm()
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DELFDump.cpp103 auto SecName = EF.getSectionName(*SymSec); in getRelocationValueString() local
104 if (!SecName) in getRelocationValueString()
105 return SecName.takeError(); in getRelocationValueString()
106 Fmt << *SecName; in getRelocationValueString()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DObjDumper.cpp117 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName()); in getSectionRefsByNameOrIndex() local
118 auto NameIt = SecNames.find(std::string(SecName)); in getSectionRefsByNameOrIndex()
/llvm-project-15.0.7/llvm/include/llvm/ObjectYAML/
H A DDWARFEmitter.h47 getDWARFEmitterByName(StringRef SecName);
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp190 void DwarfStreamer::emitSectionContents(StringRef SecData, StringRef SecName) { in emitSectionContents() argument
192 StringSwitch<MCSection *>(SecName) in emitSectionContents()
736 MCSection *Sec, StringRef SecName, const CompileUnit &Unit, in emitPubSectionForUnit() argument
743 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + SecName + "_begin"); in emitPubSectionForUnit()
744 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + SecName + "_end"); in emitPubSectionForUnit()
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp175 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
178 if (Sec.Name == SecName) { in dumpSectionToFile()
182 SecName.str().c_str()); in dumpSectionToFile()
196 SecName.str().c_str()); in dumpSectionToFile()
H A DELFObject.h508 OwnedDataSection(StringRef SecName, ArrayRef<uint8_t> Data) in OwnedDataSection() argument
510 Name = SecName.str(); in OwnedDataSection()
516 OwnedDataSection(const Twine &SecName, uint64_t SecAddr, uint64_t SecFlags, in OwnedDataSection() argument
518 Name = SecName.str(); in OwnedDataSection()
/llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/
H A DDWARFStreamer.h82 void emitSectionContents(StringRef SecData, StringRef SecName) override;
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DRawTypes.h79 support::ulittle16_t SecName; // Byte index of the segment or group name member

12