Home
last modified time | relevance | path

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

12

/freebsd/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()
/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 validateAndSetOptions()
170 if (!SecName) in validateAndSetOptions()
171 return SecName.takeError();
173 if (isDebugSection(*SecName)) { in setConfigToAddNewDebugSections()
179 *SecName, MemoryBuffer::getMemBuffer(*SecData, *SecName, false))); in setConfigToAddNewDebugSections()
176 Expected<StringRef> SecName = Sec.getName(); setConfigToAddNewDebugSections() local
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 DDebuggerSupportPlugin.cpp
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()
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp289 static Error dumpSectionToFile(StringRef SecName, StringRef Filename, in dumpSectionToFile()
293 if (Sec->CanonicalName == SecName) { in dumpSectionToFile()
308 SecName.str().c_str()); in addSection()
341 static Expected<Section &> findSection(StringRef SecName, Object &O) { in findSection()
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 updateSection()
361 assert(FoundSec->get()->CanonicalName == (SegName + "," + SecName) in updateSection()
281 dumpSectionToFile(StringRef SecName,StringRef Filename,Object & Obj) dumpSectionToFile() argument
333 findSection(StringRef SecName,Object & O) findSection() argument
[all...]
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DOutputSections.cpp
H A DDWARFEmitterImpl.h
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h71 bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
74 bool isELFInitializerSection(StringRef SecName);
/freebsd/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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/
H A DDWARFLinker.h
/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/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.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()
/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/include/llvm/ObjectYAML/
H A DDWARFEmitter.h48 getDWARFEmitterByName(StringRef SecName);
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp
/freebsd/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()
/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

12