Lines Matching refs:DRI
117 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase() argument
118 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbolTableEntryBase()
1778 DataRefImpl DRI = Sec.getRawDataRefImpl(); in getSectionType() local
1779 uint32_t Flags = getSectionFlags(*this, DRI); in getSectionType()
1816 uint32_t MachOObjectFile::getSymbolAlignment(DataRefImpl DRI) const { in getSymbolAlignment()
1817 uint32_t Flags = cantFail(getSymbolFlags(DRI)); in getSymbolAlignment()
1819 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, DRI); in getSymbolAlignment()
1825 uint64_t MachOObjectFile::getCommonSymbolSizeImpl(DataRefImpl DRI) const { in getCommonSymbolSizeImpl()
1826 return getNValue(DRI); in getCommonSymbolSizeImpl()
1855 Expected<uint32_t> MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { in getSymbolFlags()
1856 MachO::nlist_base Entry = getSymbolTableEntryBase(*this, DRI); in getSymbolFlags()
1872 if (getNValue(DRI)) in getSymbolFlags()
1901 DataRefImpl DRI; in getSymbolSection() local
1902 DRI.d.a = index - 1; in getSymbolSection()
1903 if (DRI.d.a >= Sections.size()){ in getSymbolSection()
1907 return section_iterator(SectionRef(DRI, this)); in getSymbolSection()
2004 DataRefImpl DRI; in getSection() local
2005 DRI.d.a = SectionIndex - 1; in getSection()
2006 return SectionRef(DRI, this); in getSection()
2547 DataRefImpl DRI; in symbol_begin() local
2550 return basic_symbol_iterator(SymbolRef(DRI, this)); in symbol_begin()
2556 DataRefImpl DRI; in symbol_end() local
2559 return basic_symbol_iterator(SymbolRef(DRI, this)); in symbol_end()
2566 DRI.p = reinterpret_cast<uintptr_t>(getPtr(*this, Offset)); in symbol_end()
2567 return basic_symbol_iterator(SymbolRef(DRI, this)); in symbol_end()
2576 DataRefImpl DRI; in getSymbolByIndex() local
2577 DRI.p = reinterpret_cast<uintptr_t>(getPtr(*this, Symtab.symoff)); in getSymbolByIndex()
2578 DRI.p += Index * SymbolTableEntrySize; in getSymbolByIndex()
2579 return basic_symbol_iterator(SymbolRef(DRI, this)); in getSymbolByIndex()
2595 DataRefImpl DRI; in section_begin() local
2596 return section_iterator(SectionRef(DRI, this)); in section_begin()
2600 DataRefImpl DRI; in section_end() local
2601 DRI.d.a = Sections.size(); in section_end()
2602 return section_iterator(SectionRef(DRI, this)); in section_end()
2839 DataRefImpl DRI; in section_rel_begin() local
2840 DRI.d.a = Index; in section_rel_begin()
2841 return section_rel_begin(DRI); in section_rel_begin()
2845 DataRefImpl DRI; in section_rel_end() local
2846 DRI.d.a = Index; in section_rel_end()
2847 return section_rel_end(DRI); in section_rel_end()
2851 DataRefImpl DRI; in begin_dices() local
2853 return dice_iterator(DiceRef(DRI, this)); in begin_dices()
2856 DRI.p = reinterpret_cast<uintptr_t>(getPtr(*this, DicLC.dataoff)); in begin_dices()
2857 return dice_iterator(DiceRef(DRI, this)); in begin_dices()
2861 DataRefImpl DRI; in end_dices() local
2863 return dice_iterator(DiceRef(DRI, this)); in end_dices()
2867 DRI.p = reinterpret_cast<uintptr_t>(getPtr(*this, Offset)); in end_dices()
2868 return dice_iterator(DiceRef(DRI, this)); in end_dices()
4424 DataRefImpl DRI; in getAnyRelocationSection() local
4425 DRI.d.a = SecNum - 1; in getAnyRelocationSection()
4426 return SectionRef(DRI, this); in getAnyRelocationSection()
4429 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
4430 assert(DRI.d.a < Sections.size() && "Should have detected this earlier"); in getSection()
4431 return getStruct<MachO::section>(*this, Sections[DRI.d.a]); in getSection()
4434 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
4435 assert(DRI.d.a < Sections.size() && "Should have detected this earlier"); in getSection64()
4436 return getStruct<MachO::section_64>(*this, Sections[DRI.d.a]); in getSection64()
4452 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const { in getSymbolTableEntry()
4453 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbolTableEntry()
4458 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const { in getSymbol64TableEntry()
4459 const char *P = reinterpret_cast<const char *>(DRI.p); in getSymbol64TableEntry()