Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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.cpp164 Expected<StringRef> SecName = Sec.getName(); in setConfigToAddNewDebugSections() local
165 if (!SecName) in setConfigToAddNewDebugSections()
166 return SecName.takeError(); in setConfigToAddNewDebugSections()
168 if (isDebugSection(*SecName)) { in setConfigToAddNewDebugSections()
174 *SecName, MemoryBuffer::getMemBuffer(*SecData, *SecName, false))); in setConfigToAddNewDebugSections()
H A DDebugInfoLinker.cpp237 static bool knownByDWARFUtil(StringRef SecName) { in knownByDWARFUtil() argument
238 return llvm::StringSwitch<bool>(SecName) in knownByDWARFUtil()
262 getAcceleratorTableKind(StringRef SecName) { in getAcceleratorTableKind() argument
263 return llvm::StringSwitch<std::optional<DwarfLinkerAccelTableKind>>(SecName) in getAcceleratorTableKind()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DObjectFileInterface.cpp87 auto SecName = cantFail(Obj.getSectionName(Sec.getRawDataRefImpl())); in getMachOObjectFileSymbolInfo() local
88 if (MachOPlatform::isInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
140 if (auto SecName = Sec.getName()) { in getELFObjectFileSymbolInfo() local
141 if (ELFNixPlatform::isInitializerSection(*SecName)) { in getELFObjectFileSymbolInfo()
221 if (auto SecName = Sec.getName()) { in getCOFFObjectFileSymbolInfo() local
222 if (COFFPlatform::isInitializerSection(*SecName)) { in getCOFFObjectFileSymbolInfo()
227 return SecName.takeError(); in getCOFFObjectFileSymbolInfo()
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 DMachOPlatform.cpp1171 for (auto &SecName : DataSections) { in registerObjectPlatformSections() local
1172 if (auto *Sec = G.findSectionByName(SecName)) { in registerObjectPlatformSections()
1175 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
1196 for (auto &SecName : PlatformSections) { in registerObjectPlatformSections() local
1197 auto *Sec = G.findSectionByName(SecName); in registerObjectPlatformSections()
1204 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
H A DELFNixPlatform.cpp275 bool ELFNixPlatform::isInitializerSection(StringRef SecName) { in isInitializerSection() argument
276 if (SecName.consume_front(InitArrayFuncSectionName) && in isInitializerSection()
277 (SecName.empty() || SecName[0] == '.')) in isInitializerSection()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBTFDebug.cpp406 BTFKindDataSec::BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName) in BTFKindDataSec() argument
407 : Asm(AsmPrt), Name(SecName) { in BTFKindDataSec()
1396 StringRef SecName; in processGlobals() local
1403 SecName = Global.hasSection() ? Global.getSection() : ""; in processGlobals()
1405 SecName = ".bss"; in processGlobals()
1409 SecName = Sec->getName(); in processGlobals()
1412 if (ProcessingMapDef != SecName.startswith(".maps")) in processGlobals()
1418 if (SecName == ".rodata" && Global.hasPrivateLinkage() && in processGlobals()
1419 DataSecEntries.find(std::string(SecName)) == DataSecEntries.end()) { in processGlobals()
1422 DataSecEntries[std::string(SecName)] = in processGlobals()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp140 static Error dumpDebugSection(StringRef SecName, DWARFContext &DCtx, in dumpDebugSection() argument
142 if (SecName == "__debug_abbrev") { in dumpDebugSection()
146 if (SecName == "__debug_aranges") in dumpDebugSection()
148 if (SecName == "__debug_info") { in dumpDebugSection()
152 if (SecName == "__debug_line") { in dumpDebugSection()
156 if (SecName.startswith("__debug_pub")) { in dumpDebugSection()
161 if (SecName == "__debug_ranges") in dumpDebugSection()
163 if (SecName == "__debug_str") in dumpDebugSection()
166 "dumping " + SecName + " section is not supported"); in dumpDebugSection()
184 StringRef SecName(S->sectname); in extractSections() local
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp222 StringRef SecName, ELFYAML::Section *YAMLSec);
405 std::string SecName = ("." + DebugSecName).str(); in ELFState() local
408 if (SectionHeaderStringTableName == SecName) in ELFState()
409 reportError("cannot use '" + SecName + in ELFState()
412 ImplicitSections.insert(StringRef(SecName).copy(StringAlloc)); in ELFState()
421 for (StringRef SecName : ImplicitSections) { in ELFState() local
422 if (DocSections.count(SecName)) in ELFState()
427 Sec->Name = SecName; in ELFState()
429 if (SecName == SectionHeaderStringTableName) in ELFState()
431 else if (SecName == ".dynsym") in ELFState()
[all …]
H A DDWARFEmitter.cpp1009 DWARFYAML::getDWARFEmitterByName(StringRef SecName) { in getDWARFEmitterByName() argument
1012 std::function<Error(raw_ostream &, const DWARFYAML::Data &)>>(SecName) in getDWARFEmitterByName()
1029 SecName + " is not supported"); in getDWARFEmitterByName()
1074 for (StringRef SecName : DI.getNonEmptySectionNames()) in emitDebugSections() local
1076 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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DDWARFEmitter.h47 getDWARFEmitterByName(StringRef SecName);
/openbsd-src/gnu/llvm/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp195 void DwarfStreamer::emitSectionContents(StringRef SecData, StringRef SecName) { in emitSectionContents() argument
197 StringSwitch<MCSection *>(SecName) in emitSectionContents()
715 MCSection *Sec, StringRef SecName, const CompileUnit &Unit, in emitPubSectionForUnit() argument
722 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + SecName + "_begin"); in emitPubSectionForUnit()
723 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + SecName + "_end"); in emitPubSectionForUnit()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp174 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
177 if (Sec.Name == SecName) { in dumpSectionToFile()
181 SecName.str().c_str()); in dumpSectionToFile()
195 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()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/
H A DRawTypes.h79 support::ulittle16_t SecName; // Byte index of the segment or group name member
/openbsd-src/gnu/llvm/llvm/include/llvm/DWARFLinker/
H A DDWARFStreamer.h83 void emitSectionContents(StringRef SecData, StringRef SecName) override;
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaAttr.cpp278 StringRef SecName) { in ActOnPragmaClangSection() argument
309 if (llvm::Error E = isValidSectionSpecifier(SecName)) { in ActOnPragmaClangSection()
316 if (UnifySection(SecName, SectionFlags, PragmaLoc)) in ActOnPragmaClangSection()
320 CSec->SectionName = std::string(SecName); in ActOnPragmaClangSection()
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/
H A DELFNixPlatform.h123 static bool isInitializerSection(StringRef SecName);

12