Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.h63 virtual uint64_t getSymbolSize(DataRefImpl Symb) const = 0;
64 virtual uint8_t getSymbolBinding(DataRefImpl Symb) const = 0;
65 virtual uint8_t getSymbolOther(DataRefImpl Symb) const = 0;
66 virtual uint8_t getSymbolELFType(DataRefImpl Symb) const = 0;
262 void moveSymbolNext(DataRefImpl &Symb) const override;
263 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
264 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
265 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
266 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
267 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
[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.h245 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
247 DataRefImpl Symb) const override;
248 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
249 virtual uint64_t getSymbolValueImpl(DataRefImpl Symb) const = 0;
250 virtual uint32_t getSymbolAlignment(DataRefImpl Symb) const;
251 virtual uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const = 0;
252 virtual Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const = 0;
254 getSymbolSection(DataRefImpl Symb) const = 0;
291 Expected<uint64_t> getSymbolValue(DataRefImpl Symb) const;
297 uint64_t getCommonSymbolSize(DataRefImpl Symb) const { in getCommonSymbolSize() argument
[all …]
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;
291 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
292 unsigned getSymbolSectionID(SymbolRef Symb) const;
[all …]
H A DXCOFFObjectFile.h273 void moveSymbolNext(DataRefImpl &Symb) const override;
274 Expected<uint32_t> getSymbolFlags(DataRefImpl Symb) const override;
278 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
279 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
280 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
281 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
282 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
283 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
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 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;
/netbsd-src/external/apache2/llvm/dist/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.cpp139 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext() local
140 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
141 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
143 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext() local
144 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
145 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
162 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAlignment() local
163 return std::min(uint64_t(32), PowerOf2Ceil(Symb.getValue())); in getSymbolAlignment()
168 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress() local
169 int32_t SectionNumber = Symb.getSectionNumber(); in getSymbolAddress()
[all …]
H A DXCOFFObjectFile.cpp150 void XCOFFObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
151 const XCOFFSymbolEntry *SymEntPtr = toSymbolEntry(Symb); in moveSymbolNext()
159 Symb.p = reinterpret_cast<uintptr_t>(SymEntPtr); in moveSymbolNext()
187 Expected<StringRef> XCOFFObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
188 const XCOFFSymbolEntry *SymEntPtr = toSymbolEntry(Symb); in getSymbolName()
201 Expected<uint64_t> XCOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
203 return toSymbolEntry(Symb)->Value; in getSymbolAddress()
206 uint64_t XCOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
208 return toSymbolEntry(Symb)->Value; in getSymbolValueImpl()
211 uint64_t XCOFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
[all …]
H A DWasmObjectFile.cpp1459 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1461 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1463 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolFlags()
1493 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1494 return Symbols[Symb.d.b]; in getWasmSymbol()
1497 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1498 return getWasmSymbol(Symb.getRawDataRefImpl()); in getWasmSymbol()
1501 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1502 return getWasmSymbol(Symb).Info.Name; in getSymbolName()
1505 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
[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.cpp1748 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
1752 Symb.p += SymbolTableEntrySize; in moveSymbolNext()
1755 Expected<StringRef> MachOObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1757 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolName()
1765 " for symbol at index " + Twine(getSymbolIndex(Symb))); in getSymbolName()
1787 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName() argument
1790 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getIndirectName()
1793 uint64_t NValue = getNValue(Symb); in getIndirectName()
1823 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1824 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, Symb); in getSymbolType()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp967 COFFSymbolRef Symb = Obj.getCOFFSymbol(*I); in getSymbolNMTypeChar() local
986 if (!COFF::isReservedSectionNumber(Symb.getSectionNumber())) { in getSymbolNMTypeChar()
1000 switch (Symb.getSectionNumber()) { in getSymbolNMTypeChar()
1014 if (Symb.isSectionDefinition()) in getSymbolNMTypeChar()
1034 DataRefImpl Symb = I->getRawDataRefImpl(); in getSymbolNMTypeChar() local
1035 uint8_t NType = Obj.is64Bit() ? Obj.getSymbol64TableEntry(Symb).n_type in getSymbolNMTypeChar()
1036 : Obj.getSymbolTableEntry(Symb).n_type; in getSymbolNMTypeChar()
1047 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
1217 DataRefImpl Symb = Sym.getRawDataRefImpl(); in getNsectInMachO() local
1219 MachO::nlist_64 STE = Obj.getSymbol64TableEntry(Symb); in getNsectInMachO()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp1183 for (const auto &Symb : Symbols) { in disassembleObject() local
1184 uint64_t Address = Symb.Addr; in disassembleObject()
1185 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()