Lines Matching refs:Ref
100 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const { in toSymb()
102 reinterpret_cast<const coff_symbol_type *>(Ref.p); in toSymb()
116 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const { in toSec()
117 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p); in toSec()
132 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const { in moveSymbolNext()
135 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext()
137 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
139 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext()
141 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
147 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const { in getSymbolName()
148 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolName()
156 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const { in getSymbolValueImpl()
157 return getCOFFSymbol(Ref).getValue(); in getSymbolValueImpl()
160 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const { in getSymbolAddress()
161 uint64_t Result = getSymbolValue(Ref); in getSymbolAddress()
162 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress()
181 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const { in getSymbolType()
182 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolType()
204 uint32_t COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const { in getSymbolFlags()
205 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolFlags()
232 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const { in getCommonSymbolSizeImpl()
233 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getCommonSymbolSizeImpl()
238 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const { in getSymbolSection()
239 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolSection()
255 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const { in moveSectionNext()
256 const coff_section *Sec = toSec(Ref); in moveSectionNext()
258 Ref.p = reinterpret_cast<uintptr_t>(Sec); in moveSectionNext()
261 std::error_code COFFObjectFile::getSectionName(DataRefImpl Ref, in getSectionName() argument
263 const coff_section *Sec = toSec(Ref); in getSectionName()
267 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const { in getSectionAddress()
268 const coff_section *Sec = toSec(Ref); in getSectionAddress()
277 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const { in getSectionSize()
278 return getSectionSize(toSec(Ref)); in getSectionSize()
281 std::error_code COFFObjectFile::getSectionContents(DataRefImpl Ref, in getSectionContents() argument
283 const coff_section *Sec = toSec(Ref); in getSectionContents()
290 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const { in getSectionAlignment()
291 const coff_section *Sec = toSec(Ref); in getSectionAlignment()
299 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const { in isSectionText()
300 const coff_section *Sec = toSec(Ref); in isSectionText()
304 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const { in isSectionData()
305 const coff_section *Sec = toSec(Ref); in isSectionData()
309 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const { in isSectionBSS()
310 const coff_section *Sec = toSec(Ref); in isSectionBSS()
324 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const { in isSectionVirtual()
325 const coff_section *Sec = toSec(Ref); in isSectionVirtual()
365 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
366 const coff_section *Sec = toSec(Ref); in section_rel_begin()
375 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
376 const coff_section *Sec = toSec(Ref); in section_rel_end()
807 ExportDirectoryEntryRef Ref(ExportDirectory, in export_directory_end() local
809 return export_directory_iterator(Ref); in export_directory_end()
1066 DataRefImpl Ref; in getRelocationSymbol() local
1070 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable16 + R->SymbolTableIndex); in getRelocationSymbol()
1072 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex); in getRelocationSymbol()
1075 return symbol_iterator(SymbolRef(Ref, this)); in getRelocationSymbol()
1088 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const { in getCOFFSymbol()
1090 return toSymb<coff_symbol16>(Ref); in getCOFFSymbol()
1092 return toSymb<coff_symbol32>(Ref); in getCOFFSymbol()