Home
last modified time | relevance | path

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

12

/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/
H A DObjectFormats.cpp81 bool isMachOInitializerSection(StringRef SegName, StringRef SecName) { in isMachOInitializerSection() argument
86 if (InitSection.starts_with(SegName) && InitSection.substr(7) == SecName) in isMachOInitializerSection()
99 bool isELFInitializerSection(StringRef SecName) { in isELFInitializerSection() argument
101 StringRef Name = SecName; in isELFInitializerSection()
108 bool isCOFFInitializerSection(StringRef SecName) { in isCOFFInitializerSection() argument
109 return SecName.starts_with(".CRT"); in isCOFFInitializerSection()
/src/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()
/src/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()
/src/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.cpp1349 for (auto &SecName : DataSections) { in registerObjectPlatformSections() local
1350 if (auto *Sec = G.findSectionByName(SecName)) { in registerObjectPlatformSections()
1353 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
1370 for (auto &SecName : PlatformSections) { in registerObjectPlatformSections() local
1371 auto *Sec = G.findSectionByName(SecName); in registerObjectPlatformSections()
1378 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DDefineExternalSectionStartAndEndSymbols.h138 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
140 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
144 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
146 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
/src/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()
/src/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()
/src/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp408 BTFKindDataSec::BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName) in BTFKindDataSec() argument
409 : Asm(AsmPrt), Name(SecName) { in BTFKindDataSec()
1403 StringRef SecName; in processGlobals() local
1410 SecName = Global.hasSection() ? Global.getSection() : ""; in processGlobals()
1412 SecName = ".bss"; in processGlobals()
1416 SecName = Sec->getName(); in processGlobals()
1419 if (ProcessingMapDef != SecName.starts_with(".maps")) in processGlobals()
1425 if (SecName == ".rodata" && Global.hasPrivateLinkage() && in processGlobals()
1426 DataSecEntries.find(std::string(SecName)) == DataSecEntries.end()) { in processGlobals()
1429 DataSecEntries[std::string(SecName)] = in processGlobals()
[all …]
H A DBPFCheckAndAdjustIR.cpp524 SmallString<16> SecName; in insertASpaceCasts() local
525 raw_svector_ostream OS(SecName); in insertASpaceCasts()
527 G.setSection(SecName); in insertASpaceCasts()
/src/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()
/src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h71 bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
74 bool isELFInitializerSection(StringRef SecName);
/src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp229 StringRef SecName, ELFYAML::Section *YAMLSec);
412 std::string SecName = ("." + DebugSecName).str(); in ELFState() local
415 if (SectionHeaderStringTableName == SecName) in ELFState()
416 reportError("cannot use '" + SecName + in ELFState()
419 ImplicitSections.insert(StringRef(SecName).copy(StringAlloc)); in ELFState()
428 for (StringRef SecName : ImplicitSections) { in ELFState() local
429 if (DocSections.count(SecName)) in ELFState()
434 Sec->Name = SecName; in ELFState()
436 if (SecName == SectionHeaderStringTableName) in ELFState()
438 else if (SecName == ".dynsym") in ELFState()
[all …]
H A DDWARFEmitter.cpp1197 DWARFYAML::getDWARFEmitterByName(StringRef SecName) { in getDWARFEmitterByName() argument
1200 std::function<Error(raw_ostream &, const DWARFYAML::Data &)>>(SecName) in getDWARFEmitterByName()
1218 SecName + " is not supported"); in getDWARFEmitterByName()
1263 for (StringRef SecName : DI.getNonEmptySectionNames()) in emitDebugSections() local
1265 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()
/src/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));
/src/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp141 auto SecName = EF.getSectionName(*SymSec); in getRelocationValueString() local
142 if (!SecName) in getRelocationValueString()
143 return SecName.takeError(); in getRelocationValueString()
144 Fmt << *SecName; in getRelocationValueString()
/src/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()
/src/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()
/src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFEmitter.h48 getDWARFEmitterByName(StringRef SecName);
/src/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp193 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile() argument
196 if (Sec.Name == SecName) { in dumpSectionToFile()
200 SecName.str().c_str()); in dumpSectionToFile()
214 SecName.str().c_str()); in dumpSectionToFile()
H A DELFObject.h631 OwnedDataSection(StringRef SecName, ArrayRef<uint8_t> Data) in OwnedDataSection() argument
633 Name = SecName.str(); in OwnedDataSection()
639 OwnedDataSection(const Twine &SecName, uint64_t SecAddr, uint64_t SecFlags, in OwnedDataSection() argument
641 Name = SecName.str(); in OwnedDataSection()
/src/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

12