Home
last modified time | relevance | path

Searched refs:Symb (Results 1 – 19 of 19) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DCOFFImportFile.h37 void moveSymbolNext(DataRefImpl &Symb) const override { ++Symb.p; } in moveSymbolNext() argument
39 Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override { in printSymbolName() argument
40 if (Symb.p == 0) in printSymbolName()
46 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override { in getSymbolFlags() argument
55 DataRefImpl Symb; in symbol_end() local
56 Symb.p = isData() ? 1 : 2; in symbol_end()
57 return BasicSymbolRef(Symb, this); in symbol_end()
H A DELFObjectFile.h262 void moveSymbolNext(DataRefImpl &Symb) const override;
535 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolValueImpl()
561 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAddress()
572 auto SymTabOrErr = EF.getSection(Symb.d.a); in getSymbolAddress()
601 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAlignment()
628 return getSymbolSize(Symb); in getCommonSymbolSizeImpl()
633 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolBinding()
641 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolOther()
649 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolELFType()
658 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolType()
[all …]
H A DWasm.h128 const WasmSymbol &getWasmSymbol(const DataRefImpl &Symb) const;
161 void moveSymbolNext(DataRefImpl &Symb) const override;
163 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
168 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
170 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
172 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
173 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
174 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
175 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
176 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
[all …]
H A DObjectFile.h248 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
250 DataRefImpl Symb) const override;
251 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
252 virtual uint64_t getSymbolValueImpl(DataRefImpl Symb) const = 0;
253 virtual uint32_t getSymbolAlignment(DataRefImpl Symb) const;
254 virtual uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const = 0;
257 getSymbolSection(DataRefImpl Symb) const = 0;
294 Expected<uint64_t> getSymbolValue(DataRefImpl Symb) const;
300 uint64_t getCommonSymbolSize(DataRefImpl Symb) const { in getCommonSymbolSize() argument
301 Expected<uint32_t> SymbolFlagsOrErr = getSymbolFlags(Symb); in getCommonSymbolSize()
[all …]
H A DIRObjectFile.h39 void moveSymbolNext(DataRefImpl &Symb) const override;
40 Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override;
41 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
H A DMachO.h275 void moveSymbolNext(DataRefImpl &Symb) const override;
278 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
283 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const;
286 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
287 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
288 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
289 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
290 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
292 unsigned getSymbolSectionID(SymbolRef Symb) const;
358 uint64_t getSymbolIndex(DataRefImpl Symb) const;
[all …]
H A DXCOFFObjectFile.h317 void moveSymbolNext(DataRefImpl &Symb) const override;
318 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
322 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
323 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
324 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
325 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
326 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
327 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
H A DSymbolicFile.h149 virtual void moveSymbolNext(DataRefImpl &Symb) const = 0;
151 virtual Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const = 0;
153 virtual Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const = 0;
H A DCOFF.h831 const coff_symbol_type *toSymb(DataRefImpl Symb) const;
940 void moveSymbolNext(DataRefImpl &Symb) const override;
941 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
942 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
943 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
944 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
945 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
946 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
947 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
948 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DIRObjectFile.cpp37 static ModuleSymbolTable::Symbol getSym(DataRefImpl &Symb) { in getSym() argument
38 return *reinterpret_cast<ModuleSymbolTable::Symbol *>(Symb.p); in getSym()
41 void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
42 Symb.p += sizeof(ModuleSymbolTable::Symbol); in moveSymbolNext()
45 Error IRObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName()
46 SymTab.printSymbolName(OS, getSym(Symb)); in printSymbolName()
50 Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
51 return SymTab.getSymbolFlags(getSym(Symb)); in getSymbolFlags()
H A DCOFFObjectFile.cpp140 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
144 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
171 if (Symb.isAnyUndefined() || Symb.isCommon() || in getSymbolAddress()
193 if (Symb.isAnyUndefined()) in getSymbolType()
195 if (Symb.isCommon()) in getSymbolType()
197 if (Symb.isFileRecord()) in getSymbolType()
214 if (Symb.isExternal() || Symb.isWeakExternal()) in getSymbolFlags()
226 if (Symb.isFileRecord()) in getSymbolFlags()
232 if (Symb.isCommon()) in getSymbolFlags()
235 if (Symb.isUndefined()) in getSymbolFlags()
[all …]
H A DXCOFFObjectFile.cpp161 void XCOFFObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
163 Symb.p, toSymbolRef(Symb).getNumberOfAuxEntries() + 1); in moveSymbolNext()
170 Symb.p = NextSymbolAddr; in moveSymbolNext()
202 return toSymbolRef(Symb).getName(); in getSymbolName()
206 return toSymbolRef(Symb).getValue(); in getSymbolAddress()
209 uint64_t XCOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
210 return toSymbolRef(Symb).getValue(); in getSymbolValueImpl()
213 uint64_t XCOFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
220 XCOFFObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
226 XCOFFObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
[all …]
H A DWasmObjectFile.cpp1460 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1464 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolFlags()
1495 return Symbols[Symb.d.b]; in getWasmSymbol()
1499 return getWasmSymbol(Symb.getRawDataRefImpl()); in getWasmSymbol()
1503 return getWasmSymbol(Symb).Info.Name; in getSymbolName()
1507 auto &Sym = getWasmSymbol(Symb); in getSymbolAddress()
1512 return getSymbolValue(Symb); in getSymbolAddress()
1542 return getWasmSymbolValue(getWasmSymbol(Symb)); in getSymbolValueImpl()
1557 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolType()
1580 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolSection()
[all …]
H A DObjectFile.cpp69 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName()
70 Expected<StringRef> Name = getSymbolName(Symb); in printSymbolName()
H A DMachOObjectFile.cpp1747 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
1751 Symb.p += SymbolTableEntrySize; in moveSymbolNext()
1756 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolName()
1786 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName() argument
1789 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getIndirectName()
1792 uint64_t NValue = getNValue(Symb); in getIndirectName()
1822 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1823 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolType()
1887 MachOObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1888 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolSection()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp103 COFFSymbol *Symb = nullptr; member
777 Reloc.Symb = SectionMap[TargetSection]->Symbol; in recordRelocation()
783 Reloc.Symb = SymbolMap[&A]; in recordRelocation()
786 ++Reloc.Symb->Relocations; in recordRelocation()
996 assert(Relocation.Symb->getIndex() != -1); in assignFileOffsets()
997 Relocation.Data.SymbolTableIndex = Relocation.Symb->getIndex(); in assignFileOffsets()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp852 COFFSymbolRef Symb = Obj.getCOFFSymbol(*I); in getSymbolNMTypeChar() local
871 if (!COFF::isReservedSectionNumber(Symb.getSectionNumber())) { in getSymbolNMTypeChar()
885 switch (Symb.getSectionNumber()) { in getSymbolNMTypeChar()
899 if (Symb.isSectionDefinition()) in getSymbolNMTypeChar()
919 DataRefImpl Symb = I->getRawDataRefImpl(); in getSymbolNMTypeChar() local
920 uint8_t NType = Obj.is64Bit() ? Obj.getSymbol64TableEntry(Symb).n_type in getSymbolNMTypeChar()
921 : Obj.getSymbolTableEntry(Symb).n_type; in getSymbolNMTypeChar()
932 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
1102 DataRefImpl Symb = Sym.getRawDataRefImpl(); in getNsectInMachO() local
1104 MachO::nlist_64 STE = Obj.getSymbol64TableEntry(Symb); in getNsectInMachO()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp1246 for (const auto &Symb : Symbols) { in disassembleObject() local
1247 uint64_t Address = Symb.Addr; in disassembleObject()
1248 StringRef Name = Symb.Name; in disassembleObject()
H A DMachODump.cpp7575 DataRefImpl Symb = Symbols[SymIdx].getRawDataRefImpl(); in DisassembleMachO() local
7576 uint32_t SymbolFlags = cantFail(MachOOF->getSymbolFlags(Symb)); in DisassembleMachO()