Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/
H A DObjectFormats.cpp77 bool isMachOInitializerSection(StringRef SegName, StringRef SecName) { in isMachOInitializerSection() argument
82 if (InitSection.starts_with(SegName) && InitSection.substr(7) == SecName) in isMachOInitializerSection()
95 bool isELFInitializerSection(StringRef SecName) { in isELFInitializerSection() argument
97 StringRef Name = SecName; in isELFInitializerSection()
104 bool isCOFFInitializerSection(StringRef SecName) { in isCOFFInitializerSection() argument
105 return SecName.starts_with(".CRT"); in isCOFFInitializerSection()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/
H A DDebugInfoLinker.h20 inline bool isDebugSection(StringRef SecName) { in isDebugSection() argument
21 return SecName.starts_with(".debug") || SecName.starts_with(".zdebug") || in isDebugSection()
22 SecName == ".gdb_index"; in isDebugSection()
H A Dllvm-dwarfutil.cpp169 Expected<StringRef> SecName = Sec.getName(); in setConfigToAddNewDebugSections() local
170 if (!SecName) in setConfigToAddNewDebugSections()
171 return SecName.takeError(); in setConfigToAddNewDebugSections()
173 if (isDebugSection(*SecName)) { in setConfigToAddNewDebugSections()
179 *SecName, MemoryBuffer::getMemBuffer(*SecData, *SecName, false))); in setConfigToAddNewDebugSections()
H A DDebugInfoLinker.cpp226 static bool knownByDWARFUtil(StringRef SecName) { in knownByDWARFUtil() argument
227 return llvm::StringSwitch<bool>(SecName) in knownByDWARFUtil()
252 getAcceleratorTableKind(StringRef SecName) { in getAcceleratorTableKind() argument
253 return llvm::StringSwitch<std::optional<AccelTableKind>>(SecName) in getAcceleratorTableKind()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectFileInterface.cpp88 auto SecName = cantFail(Obj.getSectionName(Sec.getRawDataRefImpl())); in getMachOObjectFileSymbolInfo() local
89 if (isMachOInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
141 if (auto SecName = Sec.getName()) { in getELFObjectFileSymbolInfo() local
142 if (isELFInitializerSection(*SecName)) { in getELFObjectFileSymbolInfo()
222 if (auto SecName = Sec.getName()) { in getCOFFObjectFileSymbolInfo() local
223 if (isCOFFInitializerSection(*SecName)) { in getCOFFObjectFileSymbolInfo()
228 return SecName.takeError(); in getCOFFObjectFileSymbolInfo()
H A DMachOPlatform.cpp1303 for (auto &SecName : DataSections) { in registerObjectPlatformSections() local
1304 if (auto *Sec = G.findSectionByName(SecName)) { in registerObjectPlatformSections()
1307 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
1324 for (auto &SecName : PlatformSections) { in registerObjectPlatformSections() local
1325 auto *Sec = G.findSectionByName(SecName); in registerObjectPlatformSections()
1332 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinkerBase.cpp16 llvm::dwarf_linker::parseDebugTableName(llvm::StringRef SecName) { in parseDebugTableName() argument
18 SecName.substr(SecName.find_first_not_of("._"))) in parseDebugTableName()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp289 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
293 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
308 SecName.str().c_str()); in dumpSectionToFile()
341 static Expected<Section &> findSection(StringRef SecName, Object &O) { in findSection() argument
343 std::tie(SegName, SecName) = SecName.split(","); in findSection()
353 [SecName](const std::unique_ptr<Section> &Sec) { in findSection()
354 return Sec->Sectname == SecName; in findSection()
359 SecName.str().c_str()); in findSection()
361 assert(FoundSec->get()->CanonicalName == (SegName + "," + SecName).str()); in findSection()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCMachOStreamer.cpp142 StringRef SecName = MSec.getName(); in canGoAfterDWARF() local
144 if (SegName == "__LD" && SecName == "__compact_unwind") in canGoAfterDWARF()
148 if (SecName == "__jump_table") in canGoAfterDWARF()
151 if (SecName == "__pointers") in canGoAfterDWARF()
155 if (SegName == "__TEXT" && SecName == "__eh_frame") in canGoAfterDWARF()
158 if (SegName == "__DATA" && (SecName == "__nl_symbol_ptr" || in canGoAfterDWARF()
159 SecName == "__thread_ptr")) in canGoAfterDWARF()
161 if (SegName == "__LLVM" && SecName == "__cg_profile") in canGoAfterDWARF()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp408 : Asm(AsmPrt), Name(SecName) { in BTFKindDataSec()
1404 StringRef SecName; in processGlobals() local
1413 SecName = ".bss"; in processGlobals()
1417 SecName = Sec->getName(); in processGlobals()
1420 if (ProcessingMapDef != SecName.starts_with(".maps")) in processGlobals()
1430 DataSecEntries[std::string(SecName)] = in processGlobals()
1446 if (SecName.starts_with(".maps")) in processGlobals()
1484 if (SecName.empty()) in processGlobals()
1489 DataSecEntries[std::string(SecName)] = in processGlobals()
1573 StringRef SecName = F->getSection(); in processFuncPrototypes() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h68 bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
71 bool isELFInitializerSection(StringRef SecName);
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DDebuggerSupportPlugin.cpp142 auto [SegName, SecName] = DSec.GraphSec->getName().split(','); in startSynthesis()
143 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
151 DebugSectionMap[SecName] = in startSynthesis()
153 if (SecName == "__debug_line") in startSynthesis()
201 auto [SegName, SecName] = NDSP.GraphSec->getName().split(','); in startSynthesis()
202 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp410 reportError("cannot use '" + SecName + in ELFState()
422 for (StringRef SecName : ImplicitSections) { in ELFState() local
423 if (DocSections.count(SecName)) in ELFState()
428 Sec->Name = SecName; in ELFState()
432 else if (SecName == ".dynsym") in ELFState()
434 else if (SecName == ".symtab") in ELFState()
660 if (SecName == ".strtab") in initImplicitHeader()
662 else if (SecName == ".dynstr") in initImplicitHeader()
666 else if (SecName == ".symtab") in initImplicitHeader()
668 else if (SecName == ".dynsym") in initImplicitHeader()
[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()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h236 Section(MachOBuilder &Builder, StringRef SecName, StringRef SegName)
239 assert(SecName.size() <= 16 && "SecName too long");
241 memcpy(this->sectname, SecName.data(), SecName.size());
281 Section &addSection(StringRef SecName, StringRef SegName) {
282 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName));
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp137 auto SecName = EF.getSectionName(*SymSec); in getRelocationValueString() local
138 if (!SecName) in getRelocationValueString()
139 return SecName.takeError(); in getRelocationValueString()
140 Fmt << *SecName; in getRelocationValueString()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/BTF/
H A DBTFParser.cpp310 StringRef SecName = findString(SecNameOff); in parseLineInfo() local
311 std::optional<SectionRef> Sec = Ctx.findSection(SecName); in parseLineInfo()
315 return Err("") << "can't find section '" << SecName in parseLineInfo()
353 StringRef SecName = findString(SecNameOff); in parseRelocInfo() local
354 std::optional<SectionRef> Sec = Ctx.findSection(SecName); in parseRelocInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFEmitter.h47 getDWARFEmitterByName(StringRef SecName);
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp119 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName()); in getSectionRefsByNameOrIndex() local
120 auto NameIt = SecNames.find(std::string(SecName)); in getSectionRefsByNameOrIndex()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp191 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
194 if (Sec.Name == SecName) { in dumpSectionToFile()
198 SecName.str().c_str()); in dumpSectionToFile()
212 SecName.str().c_str()); in dumpSectionToFile()
H A DELFObject.h515 OwnedDataSection(StringRef SecName, ArrayRef<uint8_t> Data) in OwnedDataSection() argument
517 Name = SecName.str(); in OwnedDataSection()
523 OwnedDataSection(const Twine &SecName, uint64_t SecAddr, uint64_t SecFlags, in OwnedDataSection() argument
525 Name = SecName.str(); in OwnedDataSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DRawTypes.h79 support::ulittle16_t SecName; // Byte index of the segment or group name member
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAttr.cpp276 StringRef SecName) { in ActOnPragmaClangSection() argument
307 if (llvm::Error E = isValidSectionSpecifier(SecName)) { in ActOnPragmaClangSection()
314 if (UnifySection(SecName, SectionFlags, PragmaLoc)) in ActOnPragmaClangSection()
318 CSec->SectionName = std::string(SecName); in ActOnPragmaClangSection()

12