Lines Matching refs:Ref
101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const { in toSymb()
103 reinterpret_cast<const coff_symbol_type *>(Ref.p); in toSymb()
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const { in toSec()
119 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p); in toSec()
135 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const { in moveSymbolNext()
138 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext()
140 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
142 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext()
144 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
150 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const { in getSymbolName()
151 return getSymbolName(getCOFFSymbol(Ref)); in getSymbolName()
154 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const { in getSymbolValueImpl()
155 return getCOFFSymbol(Ref).getValue(); in getSymbolValueImpl()
158 uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const { in getSymbolAlignment()
161 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAlignment()
165 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const { in getSymbolAddress()
166 uint64_t Result = cantFail(getSymbolValue(Ref)); in getSymbolAddress()
167 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress()
186 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const { in getSymbolType()
187 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolType()
209 Expected<uint32_t> COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const { in getSymbolFlags()
210 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolFlags()
240 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const { in getCommonSymbolSizeImpl()
241 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getCommonSymbolSizeImpl()
246 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const { in getSymbolSection()
247 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolSection()
263 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const { in moveSectionNext()
264 const coff_section *Sec = toSec(Ref); in moveSectionNext()
266 Ref.p = reinterpret_cast<uintptr_t>(Sec); in moveSectionNext()
269 Expected<StringRef> COFFObjectFile::getSectionName(DataRefImpl Ref) const { in getSectionName()
270 const coff_section *Sec = toSec(Ref); in getSectionName()
274 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const { in getSectionAddress()
275 const coff_section *Sec = toSec(Ref); in getSectionAddress()
288 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const { in getSectionSize()
289 return getSectionSize(toSec(Ref)); in getSectionSize()
293 COFFObjectFile::getSectionContents(DataRefImpl Ref) const { in getSectionContents()
294 const coff_section *Sec = toSec(Ref); in getSectionContents()
301 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const { in getSectionAlignment()
302 const coff_section *Sec = toSec(Ref); in getSectionAlignment()
310 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const { in isSectionText()
311 const coff_section *Sec = toSec(Ref); in isSectionText()
315 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const { in isSectionData()
316 const coff_section *Sec = toSec(Ref); in isSectionData()
320 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const { in isSectionBSS()
321 const coff_section *Sec = toSec(Ref); in isSectionBSS()
330 bool COFFObjectFile::isDebugSection(DataRefImpl Ref) const { in isDebugSection()
331 Expected<StringRef> SectionNameOrErr = getSectionName(Ref); in isDebugSection()
348 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const { in isSectionVirtual()
349 const coff_section *Sec = toSec(Ref); in isSectionVirtual()
395 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
396 const coff_section *Sec = toSec(Ref); in section_rel_begin()
405 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
406 const coff_section *Sec = toSec(Ref); in section_rel_end()
1023 ExportDirectoryEntryRef Ref(ExportDirectory, in export_directory_end() local
1025 return export_directory_iterator(Ref); in export_directory_end()
1259 DataRefImpl Ref; in getRelocationSymbol() local
1263 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable16 + R->SymbolTableIndex); in getRelocationSymbol()
1265 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex); in getRelocationSymbol()
1268 return symbol_iterator(SymbolRef(Ref, this)); in getRelocationSymbol()
1281 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const { in getCOFFSymbol()
1283 return toSymb<coff_symbol16>(Ref); in getCOFFSymbol()
1285 return toSymb<coff_symbol32>(Ref); in getCOFFSymbol()