Lines Matching defs:DRI
95 getSymbolTableEntryBase(const MachOObjectFile *O, DataRefImpl DRI) {
96 const char *P = reinterpret_cast<const char *>(DRI.p);
461 DataRefImpl DRI = Sec.getRawDataRefImpl();
462 uint32_t Flags = getSectionFlags(this, DRI);
499 uint32_t MachOObjectFile::getSymbolAlignment(DataRefImpl DRI) const {
500 uint32_t flags = getSymbolFlags(DRI);
502 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI);
508 uint64_t MachOObjectFile::getCommonSymbolSizeImpl(DataRefImpl DRI) const {
509 return getNValue(DRI);
536 uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const {
537 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI);
553 if (getNValue(DRI))
582 DataRefImpl DRI;
583 DRI.d.a = index - 1;
584 if (DRI.d.a >= Sections.size()){
588 return section_iterator(SectionRef(DRI, this));
1083 DataRefImpl DRI;
1086 return basic_symbol_iterator(SymbolRef(DRI, this));
1092 DataRefImpl DRI;
1095 return basic_symbol_iterator(SymbolRef(DRI, this));
1102 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Offset));
1103 return basic_symbol_iterator(SymbolRef(DRI, this));
1112 DataRefImpl DRI;
1113 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Symtab.symoff));
1114 DRI.p += Index * SymbolTableEntrySize;
1115 return basic_symbol_iterator(SymbolRef(DRI, this));
1131 DataRefImpl DRI;
1132 return section_iterator(SectionRef(DRI, this));
1136 DataRefImpl DRI;
1137 DRI.d.a = Sections.size();
1138 return section_iterator(SectionRef(DRI, this));
1304 DataRefImpl DRI;
1305 DRI.d.a = Index;
1306 return section_rel_begin(DRI);
1310 DataRefImpl DRI;
1311 DRI.d.a = Index;
1312 return section_rel_end(DRI);
1316 DataRefImpl DRI;
1318 return dice_iterator(DiceRef(DRI, this));
1321 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, DicLC.dataoff));
1322 return dice_iterator(DiceRef(DRI, this));
1326 DataRefImpl DRI;
1328 return dice_iterator(DiceRef(DRI, this));
1332 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Offset));
1333 return dice_iterator(DiceRef(DRI, this));
2056 DataRefImpl DRI;
2057 DRI.d.a = SecNum - 1;
2058 return SectionRef(DRI, this);
2061 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const {
2062 assert(DRI.d.a < Sections.size() && "Should have detected this earlier");
2063 return getStruct<MachO::section>(this, Sections[DRI.d.a]);
2066 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const {
2067 assert(DRI.d.a < Sections.size() && "Should have detected this earlier");
2068 return getStruct<MachO::section_64>(this, Sections[DRI.d.a]);
2084 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const {
2085 const char *P = reinterpret_cast<const char *>(DRI.p);
2090 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const {
2091 const char *P = reinterpret_cast<const char *>(DRI.p);