Lines Matching refs:Ref
102 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const { in toSymb()
104 reinterpret_cast<const coff_symbol_type *>(Ref.p); in toSymb()
119 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const { in toSec()
120 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p); in toSec()
136 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const { in moveSymbolNext()
139 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext()
141 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
143 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext()
145 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
151 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const { in getSymbolName()
152 return getSymbolName(getCOFFSymbol(Ref)); in getSymbolName()
155 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const { in getSymbolValueImpl()
156 return getCOFFSymbol(Ref).getValue(); in getSymbolValueImpl()
159 uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const { in getSymbolAlignment()
162 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAlignment()
166 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const { in getSymbolAddress()
167 uint64_t Result = cantFail(getSymbolValue(Ref)); in getSymbolAddress()
168 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress()
187 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const { in getSymbolType()
188 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolType()
210 Expected<uint32_t> COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const { in getSymbolFlags()
211 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolFlags()
241 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const { in getCommonSymbolSizeImpl()
242 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getCommonSymbolSizeImpl()
247 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const { in getSymbolSection()
248 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolSection()
264 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const { in moveSectionNext()
265 const coff_section *Sec = toSec(Ref); in moveSectionNext()
267 Ref.p = reinterpret_cast<uintptr_t>(Sec); in moveSectionNext()
270 Expected<StringRef> COFFObjectFile::getSectionName(DataRefImpl Ref) const { in getSectionName()
271 const coff_section *Sec = toSec(Ref); in getSectionName()
275 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const { in getSectionAddress()
276 const coff_section *Sec = toSec(Ref); in getSectionAddress()
289 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const { in getSectionSize()
290 return getSectionSize(toSec(Ref)); in getSectionSize()
294 COFFObjectFile::getSectionContents(DataRefImpl Ref) const { in getSectionContents()
295 const coff_section *Sec = toSec(Ref); in getSectionContents()
302 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const { in getSectionAlignment()
303 const coff_section *Sec = toSec(Ref); in getSectionAlignment()
311 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const { in isSectionText()
312 const coff_section *Sec = toSec(Ref); in isSectionText()
316 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const { in isSectionData()
317 const coff_section *Sec = toSec(Ref); in isSectionData()
321 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const { in isSectionBSS()
322 const coff_section *Sec = toSec(Ref); in isSectionBSS()
331 bool COFFObjectFile::isDebugSection(DataRefImpl Ref) const { in isDebugSection()
332 Expected<StringRef> SectionNameOrErr = getSectionName(Ref); in isDebugSection()
349 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const { in isSectionVirtual()
350 const coff_section *Sec = toSec(Ref); in isSectionVirtual()
396 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
397 const coff_section *Sec = toSec(Ref); in section_rel_begin()
406 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
407 const coff_section *Sec = toSec(Ref); in section_rel_end()
976 ExportDirectoryEntryRef Ref(ExportDirectory, in export_directory_end() local
978 return export_directory_iterator(Ref); in export_directory_end()
1219 DataRefImpl Ref; in getRelocationSymbol() local
1223 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable16 + R->SymbolTableIndex); in getRelocationSymbol()
1225 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex); in getRelocationSymbol()
1228 return symbol_iterator(SymbolRef(Ref, this)); in getRelocationSymbol()
1241 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const { in getCOFFSymbol()
1243 return toSymb<coff_symbol16>(Ref); in getCOFFSymbol()
1245 return toSymb<coff_symbol32>(Ref); in getCOFFSymbol()