/external/llvm/lib/Object/ |
D | IRObjectFile.cpp | 122 static const GlobalValue *getGV(DataRefImpl &Symb) { in getGV() argument 123 if ((Symb.p & 3) == 3) in getGV() 126 return reinterpret_cast<GlobalValue*>(Symb.p & ~uintptr_t(3)); in getGV() 150 static unsigned getAsmSymIndex(DataRefImpl Symb) { in getAsmSymIndex() argument 151 assert((Symb.p & uintptr_t(3)) == 3); in getAsmSymIndex() 152 uintptr_t Index = Symb.p & ~uintptr_t(3); in getAsmSymIndex() 157 void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext() 158 const GlobalValue *GV = getGV(Symb); in moveSymbolNext() 161 switch (Symb.p & 3) { in moveSymbolNext() 181 unsigned Index = getAsmSymIndex(Symb); in moveSymbolNext() [all …]
|
D | COFFObjectFile.cpp | 128 const coff_symbol *Symb = toSymb(Ref); in moveSymbolNext() local 129 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext() 130 Ref.p = reinterpret_cast<uintptr_t>(Symb); in moveSymbolNext() 135 const coff_symbol *Symb = toSymb(Ref); in getSymbolName() local 136 return getSymbolName(Symb, Result); in getSymbolName() 141 const coff_symbol *Symb = toSymb(Ref); in getSymbolAddress() local 143 if (std::error_code EC = getSection(Symb->SectionNumber, Section)) in getSymbolAddress() 146 if (Symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) in getSymbolAddress() 149 Result = Section->VirtualAddress + Symb->Value; in getSymbolAddress() 151 Result = Symb->Value; in getSymbolAddress() [all …]
|
D | ObjectFile.cpp | 30 DataRefImpl Symb) const { in printSymbolName() 32 if (std::error_code EC = getSymbolName(Symb, Name)) in printSymbolName()
|
D | MachOObjectFile.cpp | 467 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext() 471 Symb.p += SymbolTableEntrySize; in moveSymbolNext() 474 std::error_code MachOObjectFile::getSymbolName(DataRefImpl Symb, in getSymbolName() argument 477 nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolName() 485 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName() argument 490 MachO::nlist_64 Entry = getSymbol64TableEntry(Symb); in getIndirectName() 495 MachO::nlist Entry = getSymbolTableEntry(Symb); in getIndirectName() 507 std::error_code MachOObjectFile::getSymbolAddress(DataRefImpl Symb, in getSymbolAddress() argument 510 MachO::nlist_64 Entry = getSymbol64TableEntry(Symb); in getSymbolAddress() 517 MachO::nlist Entry = getSymbolTableEntry(Symb); in getSymbolAddress() [all …]
|
/external/llvm/include/llvm/Object/ |
D | ELFObjectFile.h | 59 void moveSymbolNext(DataRefImpl &Symb) const override; 60 std::error_code getSymbolName(DataRefImpl Symb, 62 std::error_code getSymbolAddress(DataRefImpl Symb, 64 std::error_code getSymbolAlignment(DataRefImpl Symb, 66 std::error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const override; 67 uint32_t getSymbolFlags(DataRefImpl Symb) const override; 68 std::error_code getSymbolType(DataRefImpl Symb, 70 std::error_code getSymbolSection(DataRefImpl Symb, 97 std::error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, 129 Elf_Sym_Iter toELFSymIter(DataRefImpl Symb) const { in toELFSymIter() argument [all …]
|
D | IRObjectFile.h | 33 void moveSymbolNext(DataRefImpl &Symb) const override; 35 DataRefImpl Symb) const override; 36 uint32_t getSymbolFlags(DataRefImpl Symb) const override; 37 const GlobalValue *getSymbolGV(DataRefImpl Symb) const;
|
D | MachO.h | 62 void moveSymbolNext(DataRefImpl &Symb) const override; 63 std::error_code getSymbolName(DataRefImpl Symb, 67 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const; 69 std::error_code getSymbolAddress(DataRefImpl Symb, 71 std::error_code getSymbolAlignment(DataRefImpl Symb, 73 std::error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const override; 74 std::error_code getSymbolType(DataRefImpl Symb, 76 uint32_t getSymbolFlags(DataRefImpl Symb) const override; 77 std::error_code getSymbolSection(DataRefImpl Symb, 99 std::error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,
|
D | COFF.h | 358 const coff_symbol *toSymb(DataRefImpl Symb) const; 367 void moveSymbolNext(DataRefImpl &Symb) const override; 368 std::error_code getSymbolName(DataRefImpl Symb, 370 std::error_code getSymbolAddress(DataRefImpl Symb, 372 std::error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const override; 373 uint32_t getSymbolFlags(DataRefImpl Symb) const override; 374 std::error_code getSymbolType(DataRefImpl Symb, 376 std::error_code getSymbolSection(DataRefImpl Symb, 397 std::error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,
|
D | ObjectFile.h | 226 virtual std::error_code getSymbolName(DataRefImpl Symb, 229 DataRefImpl Symb) const override; 230 virtual std::error_code getSymbolAddress(DataRefImpl Symb, 232 virtual std::error_code getSymbolAlignment(DataRefImpl Symb, 234 virtual std::error_code getSymbolSize(DataRefImpl Symb, 236 virtual std::error_code getSymbolType(DataRefImpl Symb, 238 virtual std::error_code getSymbolSection(DataRefImpl Symb, 267 DataRefImpl Symb,
|
D | SymbolicFile.h | 121 virtual void moveSymbolNext(DataRefImpl &Symb) const = 0; 124 DataRefImpl Symb) const = 0; 126 virtual uint32_t getSymbolFlags(DataRefImpl Symb) const = 0;
|
D | ELF.h | 308 const Elf_Sym *Symb, 419 const Elf_Sym *Symb) const; 900 const Elf_Sym *Symb) const { in getSymbolName() argument 901 if (Symb->st_name == 0) { in getSymbolName() 902 const Elf_Shdr *ContainingSec = getSection(Symb); in getSymbolName() 908 if (Symb->st_name >= StrTab->sh_size) in getSymbolName() 910 return StringRef(getString(StrTab, Symb->st_name)); in getSymbolName()
|
/external/llvm/tools/llvm-nm/ |
D | llvm-nm.cpp | 167 DataRefImpl Symb; member 277 STE_64 = MachO->getSymbol64TableEntry(I->Symb); in darwinPrintSymbol() 285 STE = MachO->getSymbolTableEntry(I->Symb); in darwinPrintSymbol() 329 MachO->getSymbolSection(I->Symb, Sec); in darwinPrintSymbol() 388 if (MachO->getIndirectName(I->Symb, IndirectName)) in darwinPrintSymbol() 512 DataRefImpl Symb = I->getRawDataRefImpl(); in getSymbolNMTypeChar() local 513 const Elf_Sym *ESym = Obj.getSymbol(Symb); in getSymbolNMTypeChar() 552 const coff_symbol *Symb = Obj.getCOFFSymbol(*I); in getSymbolNMTypeChar() local 569 if (!COFF::isReservedSectionNumber(Symb->SectionNumber)) { in getSymbolNMTypeChar() 577 switch (Symb->SectionNumber) { in getSymbolNMTypeChar() [all …]
|
/external/llvm/lib/MC/ |
D | WinCOFFObjectWriter.cpp | 83 COFFSymbol *Symb; member 85 COFFRelocation() : Symb(nullptr) {} in COFFRelocation() 767 Reloc.Symb = coff_symbol->Section->Symbol; in RecordRelocation() 771 Reloc.Symb = coff_symbol; in RecordRelocation() 773 ++Reloc.Symb->Relocations; in RecordRelocation() 937 assert(Relocation.Symb->Index != -1); in WriteObject() 938 Relocation.Data.SymbolTableIndex = Relocation.Symb->Index; in WriteObject()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfUnit.cpp | 223 MCSymbol *Symb = DU->getStringPool().getSymbol(*Asm, String); in addLocalString() local 226 Value = new (DIEValueAllocator) DIELabel(Symb); in addLocalString() 229 Value = new (DIEValueAllocator) DIEDelta(Symb, StringPool); in addLocalString()
|