/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | GOFFObjectFile.cpp | 187 const uint8_t *GOFFObjectFile::getSymbolEsdRecord(DataRefImpl Symb) const { in getSymbolEsdRecord() 188 const uint8_t *EsdRecord = EsdPtrs[Symb.d.a]; in getSymbolEsdRecord() 192 Expected<StringRef> GOFFObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName() 193 if (EsdNamesCache.count(Symb.d.a)) { in getSymbolName() 194 auto &StrPtr = EsdNamesCache[Symb.d.a]; in getSymbolName() 199 if (auto Err = ESDRecord::getData(getSymbolEsdRecord(Symb), SymbolName)) in getSymbolName() 209 EsdNamesCache[Symb.d.a] = std::move(StrPtr); in getSymbolName() 217 Expected<uint64_t> GOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress() 219 const uint8_t *EsdRecord = getSymbolEsdRecord(Symb); in getSymbolAddress() 224 uint64_t GOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl() [all …]
|
H A D | IRObjectFile.cpp | 36 static ModuleSymbolTable::Symbol getSym(DataRefImpl &Symb) { 37 return *reinterpret_cast<ModuleSymbolTable::Symbol *>(Symb.p); in getSym() argument 40 void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { 41 Symb.p += sizeof(ModuleSymbolTable::Symbol); in moveSymbolNext() 44 Error IRObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { 45 SymTab.printSymbolName(OS, getSym(Symb)); in printSymbolName() 49 Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { 50 return SymTab.getSymbolFlags(getSym(Symb)); in getSymbolFlags()
|
H A D | COFFObjectFile.cpp | 138 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext() local 139 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext() 140 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext() 142 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext() local 143 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext() 144 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext() 161 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAlignment() local 162 return std::min(uint64_t(32), PowerOf2Ceil(Symb.getValue())); in getSymbolAlignment() 167 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress() local 168 int32_t SectionNumber = Symb.getSectionNumber(); in getSymbolAddress() [all …]
|
H A D | XCOFFObjectFile.cpp | 215 void XCOFFObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext() 217 Symb.p, toSymbolRef(Symb).getNumberOfAuxEntries() + 1); in moveSymbolNext() 224 Symb.p = NextSymbolAddr; in moveSymbolNext() 259 Expected<StringRef> XCOFFObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName() 260 return toSymbolRef(Symb).getName(); in getSymbolName() 263 Expected<uint64_t> XCOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress() 264 return toSymbolRef(Symb).getValue(); in getSymbolAddress() 267 uint64_t XCOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl() 268 return toSymbolRef(Symb).getValue(); in getSymbolValueImpl() 271 uint32_t XCOFFObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment() [all …]
|
H A D | WasmObjectFile.cpp | 1779 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext() 1781 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags() 1783 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolFlags() 1813 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol() 1814 return Symbols[Symb.d.b]; in getWasmSymbol() 1817 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol() 1818 return getWasmSymbol(Symb.getRawDataRefImpl()); in getWasmSymbol() 1821 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName() 1822 return getWasmSymbol(Symb).Info.Name; in getSymbolName() 1825 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress() [all …]
|
H A D | ObjectFile.cpp | 69 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName() 70 Expected<StringRef> Name = getSymbolName(Symb); in printSymbolName()
|
H A D | COFFImportFile.cpp | 101 Error COFFImportFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName() 102 switch (Symb.p) { in printSymbolName() 111 if (Symb.p != ECThunkSymbol && COFF::isArm64EC(getMachine())) { in printSymbolName()
|
H A D | MachOObjectFile.cpp | 1767 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext() 1771 Symb.p += SymbolTableEntrySize; in moveSymbolNext() 1774 Expected<StringRef> MachOObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName() 1776 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolName() 1784 " for symbol at index " + Twine(getSymbolIndex(Symb))); in getSymbolName() 1806 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName() argument 1809 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getIndirectName() 1812 uint64_t NValue = getNValue(Symb); in getIndirectName() 1842 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType() 1843 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolType() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | GOFFObjectFile.h | 64 void moveSymbolNext(DataRefImpl &Symb) const override; 78 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 79 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 80 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override; 81 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; 82 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override; 83 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override; 84 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override; 85 uint64_t getSymbolSize(DataRefImpl Symb) const; 87 const uint8_t *getSymbolEsdRecord(DataRefImpl Symb) const; [all …]
|
H A D | COFFImportFile.h | 46 void moveSymbolNext(DataRefImpl &Symb) const override { ++Symb.p; } in moveSymbolNext() argument 48 Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override; 50 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override { in getSymbolFlags() argument 59 DataRefImpl Symb; in symbol_end() local 61 Symb.p = ImpSymbol + 1; in symbol_end() 63 Symb.p = ECThunkSymbol + 1; in symbol_end() 65 Symb.p = ThunkSymbol + 1; in symbol_end() 66 return BasicSymbolRef(Symb, this); in symbol_end()
|
H A D | ELFObjectFile.h | 74 virtual uint64_t getSymbolSize(DataRefImpl Symb) const = 0; 75 virtual uint8_t getSymbolBinding(DataRefImpl Symb) const = 0; 76 virtual uint8_t getSymbolOther(DataRefImpl Symb) const = 0; 77 virtual uint8_t getSymbolELFType(DataRefImpl Symb) const = 0; 304 void moveSymbolNext(DataRefImpl &Symb) const override; 305 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 306 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 307 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override; 308 uint32_t getSymbolAlignment(DataRefImpl Symb) const override; 309 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; [all …]
|
H A D | Wasm.h | 132 const WasmSymbol &getWasmSymbol(const DataRefImpl &Symb) const; 163 void moveSymbolNext(DataRefImpl &Symb) const override; 165 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override; 170 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 174 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 176 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override; 177 uint32_t getSymbolAlignment(DataRefImpl Symb) const override; 178 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; 179 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override; 180 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override; [all …]
|
H A D | ObjectFile.h | 249 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0; 251 DataRefImpl Symb) const override; 252 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0; 253 virtual uint64_t getSymbolValueImpl(DataRefImpl Symb) const = 0; 254 virtual uint32_t getSymbolAlignment(DataRefImpl Symb) const; 255 virtual uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const = 0; 256 virtual Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const = 0; 258 getSymbolSection(DataRefImpl Symb) const = 0; 300 Expected<uint64_t> getSymbolValue(DataRefImpl Symb) const; 307 uint64_t getCommonSymbolSize(DataRefImpl Symb) const { in getCommonSymbolSize() argument [all …]
|
H A D | IRObjectFile.h | 35 void moveSymbolNext(DataRefImpl &Symb) const override; 36 Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override; 37 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
|
H A D | MachO.h | 422 void moveSymbolNext(DataRefImpl &Symb) const override; 425 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 430 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const; 433 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 434 uint32_t getSymbolAlignment(DataRefImpl Symb) const override; 435 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; 436 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override; 437 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override; 438 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override; 439 unsigned getSymbolSectionID(SymbolRef Symb) const; [all …]
|
H A D | SymbolicFile.h | 151 virtual void moveSymbolNext(DataRefImpl &Symb) const = 0; 153 virtual Error printSymbolName(raw_ostream &OS, DataRefImpl Symb) const = 0; 155 virtual Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const = 0;
|
H A D | XCOFFObjectFile.h | 585 void moveSymbolNext(DataRefImpl &Symb) const override; 586 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override; 594 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 595 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 596 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override; 597 uint32_t getSymbolAlignment(DataRefImpl Symb) const override; 598 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; 599 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override; 600 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override; 681 uint64_t getSymbolSize(DataRefImpl Symb) const;
|
H A D | COFF.h | 868 const coff_symbol_type *toSymb(DataRefImpl Symb) const; 993 void moveSymbolNext(DataRefImpl &Symb) const override; 994 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override; 995 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override; 996 uint32_t getSymbolAlignment(DataRefImpl Symb) const override; 997 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override; 998 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override; 999 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override; 1000 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override; 1001 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | WinCOFFObjectWriter.cpp | 99 COFFSymbol *Symb = nullptr; member 775 assert(Relocation.Symb->getIndex() != -1); in assignFileOffsets() 776 Relocation.Data.SymbolTableIndex = Relocation.Symb->getIndex(); in assignFileOffsets() 887 Reloc.Symb = Section->Symbol; in recordRelocation() 897 Reloc.Symb = Section->OffsetSymbols[LabelIndex - 1]; in recordRelocation() 899 Reloc.Symb = Section->OffsetSymbols.back(); in recordRelocation() 900 FixedValue -= Reloc.Symb->Data.Value; in recordRelocation() 907 Reloc.Symb = SymbolMap[&A]; in recordRelocation() 910 ++Reloc.Symb->Relocations; in recordRelocation()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/ |
H A D | llvm-nm.cpp | 912 COFFSymbolRef Symb = Obj.getCOFFSymbol(*I); in getSymbolNMTypeChar() local 931 if (!COFF::isReservedSectionNumber(Symb.getSectionNumber())) { in getSymbolNMTypeChar() 945 switch (Symb.getSectionNumber()) { in getSymbolNMTypeChar() 959 if (Symb.isSectionDefinition()) in getSymbolNMTypeChar() 1015 DataRefImpl Symb = I->getRawDataRefImpl(); in getSymbolNMTypeChar() local 1016 uint8_t NType = Obj.is64Bit() ? Obj.getSymbol64TableEntry(Symb).n_type in getSymbolNMTypeChar() 1017 : Obj.getSymbolTableEntry(Symb).n_type; in getSymbolNMTypeChar() 1028 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar() 1210 DataRefImpl Symb = Sym.getRawDataRefImpl(); in getNsectInMachO() local 1212 MachO::nlist_64 STE = Obj.getSymbol64TableEntry(Symb); in getNsectInMachO() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
H A D | MachODump.cpp | 7564 DataRefImpl Symb = Symbols[SymIdx].getRawDataRefImpl(); in DisassembleMachO() local 7565 uint32_t SymbolFlags = cantFail(MachOOF->getSymbolFlags(Symb)); in DisassembleMachO()
|