Home
last modified time | relevance | path

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

12

/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.cpp171 Expected<StringRef> SecName = Sec.getName(); in setConfigToAddNewDebugSections() local
172 if (!SecName) in setConfigToAddNewDebugSections()
173 return SecName.takeError(); in setConfigToAddNewDebugSections()
175 if (isDebugSection(*SecName)) { in setConfigToAddNewDebugSections()
181 *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/ExecutionEngine/Orc/Shared/
H A DObjectFormats.cpp41 bool isELFInitializerSection(StringRef SecName) { in isELFInitializerSection() argument
43 StringRef Name = SecName; in isELFInitializerSection()
50 bool isCOFFInitializerSection(StringRef SecName) { in isCOFFInitializerSection() argument
51 return SecName.starts_with(".CRT"); in isCOFFInitializerSection()
H A DMachOObjectFormat.cpp65 bool isMachOInitializerSection(StringRef SegName, StringRef SecName) { in isMachOInitializerSection() argument
70 if (InitSection.starts_with(SegName) && InitSection.substr(7) == SecName) in isMachOInitializerSection()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMachO.cpp263 if (auto SecName = Sec.getName()) { in operator ()() local
264 if (*SecName == "__objc_classlist" || *SecName == "__objc_protolist" || in operator ()()
265 *SecName == "__objc_clsrolist" || *SecName == "__objc_catlist" || in operator ()()
266 *SecName == "__objc_catlist2" || *SecName == "__objc_nlcatlist" || in operator ()()
267 (SegName == "__TEXT" && (*SecName).starts_with("__swift") && in operator ()()
268 *SecName != "__swift_modhash")) { in operator ()()
274 return SecName.takeError(); in operator ()()
H A DObjectFileInterface.cpp86 auto SecName = cantFail(Obj.getSectionName(Sec.getRawDataRefImpl())); in getMachOObjectFileSymbolInfo() local
87 if (isMachOInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
139 if (auto SecName = Sec.getName()) { in getELFObjectFileSymbolInfo() local
140 if (isELFInitializerSection(*SecName)) { in getELFObjectFileSymbolInfo()
220 if (auto SecName = Sec.getName()) { in getCOFFObjectFileSymbolInfo() local
221 if (isCOFFInitializerSection(*SecName)) { in getCOFFObjectFileSymbolInfo()
226 return SecName.takeError(); in getCOFFObjectFileSymbolInfo()
H A DDebuggerSupportPlugin.cpp
/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 "section '%s' not found", SecName.str().c_str()); in dumpSectionToFile()
115 StringRef SecName; in handleArgs() local
117 std::tie(SecName, FileName) = Flag.split("="); in handleArgs()
119 dumpSectionToFile(SecName, FileName, Config.InputFilename, Obj)) in handleArgs()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DDefineExternalSectionStartAndEndSymbols.h135 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
137 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
141 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
143 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp308 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
312 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
327 "section '%s' not found", SecName.str().c_str()); in dumpSectionToFile()
360 static Expected<Section &> findSection(StringRef SecName, Object &O) { in findSection() argument
362 std::tie(SegName, SecName) = SecName.split(","); in findSection()
374 if (Sec->Segname == SegName && Sec->Sectname == SecName) in findSection()
379 SecName.str().c_str(), SegName.str().c_str()); in findSection()
390 [SecName](const std::unique_ptr<Section> &Sec) { in findSection()
391 return Sec->Sectname == SecName; in findSection()
396 SecName.str().c_str()); in findSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DOutputSections.cpp
H A DDWARFEmitterImpl.h
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DDebuggerSupportPlugin.cpp138 auto [SegName, SecName] = DSec.GraphSec->getName().split(','); in startSynthesis()
139 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
147 DebugSectionMap[SecName.drop_front(2)] = // drop "__" prefix. in startSynthesis()
149 if (SecName == "__debug_line") in startSynthesis()
207 auto [SegName, SecName] = NDSP.GraphSec->getName().split(','); in startSynthesis()
208 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp474 BTFKindDataSec::BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName) in BTFKindDataSec() argument
475 : Asm(AsmPrt), Name(SecName) { in BTFKindDataSec()
1522 StringRef SecName; in processGlobals() local
1529 SecName = Global.hasSection() ? Global.getSection() : ""; in processGlobals()
1531 SecName = ".bss"; in processGlobals()
1535 SecName = Sec->getName(); in processGlobals()
1538 if (ProcessingMapDef != SecName.starts_with(".maps")) in processGlobals()
1544 if (SecName == ".rodata" && Global.hasPrivateLinkage() && in processGlobals()
1545 DataSecEntries.find(SecName) == DataSecEntries.end()) { in processGlobals()
1548 DataSecEntries[std::string(SecName)] = in processGlobals()
[all …]
H A DBPFCheckAndAdjustIR.cpp520 SmallString<16> SecName; in insertASpaceCasts() local
521 raw_svector_ostream OS(SecName); in insertASpaceCasts()
523 G.setSection(SecName); in insertASpaceCasts()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp226 StringRef SecName, ELFYAML::Section *YAMLSec);
409 std::string SecName = ("." + DebugSecName).str(); in ELFState() local
412 if (SectionHeaderStringTableName == SecName) in ELFState()
413 reportError("cannot use '" + SecName + in ELFState()
416 ImplicitSections.insert(StringRef(SecName).copy(StringAlloc)); in ELFState()
425 for (StringRef SecName : ImplicitSections) { in ELFState() local
426 if (DocSections.count(SecName)) in ELFState()
431 Sec->Name = SecName; in ELFState()
433 if (SecName == SectionHeaderStringTableName) in ELFState()
435 else if (SecName == ".dynsym") in ELFState()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/
H A DDWARFLinker.h
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h231 Section(MachOBuilder &Builder, StringRef SecName, StringRef SegName)
234 assert(SecName.size() <= 16 && "SecName too long");
236 memcpy(this->sectname, SecName.data(), SecName.size());
276 Section &addSection(StringRef SecName, StringRef SegName) {
277 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName));
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/BTF/
H A DBTFParser.cpp310 StringRef SecName = findString(SecNameOff);
311 std::optional<SectionRef> Sec = Ctx.findSection(SecName);
315 return Err("") << "can't find section '" << SecName
353 StringRef SecName = findString(SecNameOff);
354 std::optional<SectionRef> Sec = Ctx.findSection(SecName);
187 StringRef SecName = findString(SecNameOff); parseLineInfo() local
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp148 auto SecName = EF.getSectionName(*SymSec); in getRelocationValueString() local
149 if (!SecName) in getRelocationValueString()
150 return SecName.takeError(); in getRelocationValueString()
151 Fmt << *SecName; in getRelocationValueString()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h38 LLVM_ABI bool isELFInitializerSection(StringRef SecName);
H A DMachOObjectFormat.h61 LLVM_ABI bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp121 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName()); in getSectionRefsByNameOrIndex() local
122 auto NameIt = SecNames.find(SecName); in getSectionRefsByNameOrIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFEmitter.h49 getDWARFEmitterByName(StringRef SecName);

12