Lines Matching refs:DRI
88 getSymbolTableEntryBase(const MachOObjectFile *O, DataRefImpl DRI) { in getSymbolTableEntryBase() argument
89 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbolTableEntryBase()
341 DataRefImpl DRI = Sec.getRawDataRefImpl(); in getSectionType() local
342 uint32_t Flags = getSectionFlags(this, DRI); in getSectionType()
379 uint32_t MachOObjectFile::getSymbolAlignment(DataRefImpl DRI) const { in getSymbolAlignment()
380 uint32_t flags = getSymbolFlags(DRI); in getSymbolAlignment()
382 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI); in getSymbolAlignment()
388 uint64_t MachOObjectFile::getCommonSymbolSizeImpl(DataRefImpl DRI) const { in getCommonSymbolSizeImpl()
389 return getNValue(DRI); in getCommonSymbolSizeImpl()
412 uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { in getSymbolFlags()
413 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI); in getSymbolFlags()
429 if (getNValue(DRI)) in getSymbolFlags()
458 DataRefImpl DRI; in getSymbolSection() local
459 DRI.d.a = index - 1; in getSymbolSection()
460 if (DRI.d.a >= Sections.size()) in getSymbolSection()
462 return section_iterator(SectionRef(DRI, this)); in getSymbolSection()
949 DataRefImpl DRI; in symbol_end_impl() local
951 return basic_symbol_iterator(SymbolRef(DRI, this)); in symbol_end_impl()
959 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Offset)); in symbol_end_impl()
960 return basic_symbol_iterator(SymbolRef(DRI, this)); in symbol_end_impl()
964 DataRefImpl DRI; in getSymbolByIndex() local
966 return basic_symbol_iterator(SymbolRef(DRI, this)); in getSymbolByIndex()
973 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Symtab.symoff)); in getSymbolByIndex()
974 DRI.p += Index * SymbolTableEntrySize; in getSymbolByIndex()
975 return basic_symbol_iterator(SymbolRef(DRI, this)); in getSymbolByIndex()
979 DataRefImpl DRI; in section_begin() local
980 return section_iterator(SectionRef(DRI, this)); in section_begin()
984 DataRefImpl DRI; in section_end() local
985 DRI.d.a = Sections.size(); in section_end()
986 return section_iterator(SectionRef(DRI, this)); in section_end()
1204 DataRefImpl DRI; in section_rel_begin() local
1205 DRI.d.a = Index; in section_rel_begin()
1206 return section_rel_begin(DRI); in section_rel_begin()
1210 DataRefImpl DRI; in section_rel_end() local
1211 DRI.d.a = Index; in section_rel_end()
1212 return section_rel_end(DRI); in section_rel_end()
1216 DataRefImpl DRI; in begin_dices() local
1218 return dice_iterator(DiceRef(DRI, this)); in begin_dices()
1221 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, DicLC.dataoff)); in begin_dices()
1222 return dice_iterator(DiceRef(DRI, this)); in begin_dices()
1226 DataRefImpl DRI; in end_dices() local
1228 return dice_iterator(DiceRef(DRI, this)); in end_dices()
1232 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Offset)); in end_dices()
1233 return dice_iterator(DiceRef(DRI, this)); in end_dices()
1956 DataRefImpl DRI; in getAnyRelocationSection() local
1957 DRI.d.a = SecNum - 1; in getAnyRelocationSection()
1958 return SectionRef(DRI, this); in getAnyRelocationSection()
1961 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
1962 assert(DRI.d.a < Sections.size() && "Should have detected this earlier"); in getSection()
1963 return getStruct<MachO::section>(this, Sections[DRI.d.a]); in getSection()
1966 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
1967 assert(DRI.d.a < Sections.size() && "Should have detected this earlier"); in getSection64()
1968 return getStruct<MachO::section_64>(this, Sections[DRI.d.a]); in getSection64()
1984 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const { in getSymbolTableEntry()
1985 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbolTableEntry()
1990 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const { in getSymbol64TableEntry()
1991 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbol64TableEntry()