| /openbsd-src/gnu/llvm/llvm/tools/llvm-dwarfutil/ |
| H A D | DebugInfoLinker.h | 20 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 D | llvm-dwarfutil.cpp | 164 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 D | DebugInfoLinker.cpp | 237 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 D | WasmObjcopy.cpp | 40 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 D | ObjectFileInterface.cpp | 87 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 D | DebuggerSupportPlugin.cpp | 131 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 D | MachOPlatform.cpp | 1171 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 D | ELFNixPlatform.cpp | 275 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 D | MachOObjcopy.cpp | 278 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 D | MCMachOStreamer.cpp | 143 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 D | BTFDebug.cpp | 406 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 D | macho2yaml.cpp | 140 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 D | ELFEmitter.cpp | 222 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 D | DWARFEmitter.cpp | 1009 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 D | WasmEmitter.cpp | 603 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 D | ELFDump.cpp | 103 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 D | ObjDumper.cpp | 117 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 D | DWARFEmitter.h | 47 getDWARFEmitterByName(StringRef SecName);
|
| /openbsd-src/gnu/llvm/llvm/lib/DWARFLinker/ |
| H A D | DWARFStreamer.cpp | 195 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 D | ELFObjcopy.cpp | 174 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 D | ELFObject.h | 508 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 D | RawTypes.h | 79 support::ulittle16_t SecName; // Byte index of the segment or group name member
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFStreamer.h | 83 void emitSectionContents(StringRef SecData, StringRef SecName) override;
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaAttr.cpp | 278 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 D | ELFNixPlatform.h | 123 static bool isInitializerSection(StringRef SecName);
|