Lines Matching defs:Ref

101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const {
103 reinterpret_cast<const coff_symbol_type *>(Ref.p);
117 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
118 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p);
133 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const {
136 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref);
138 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End);
140 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref);
142 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End);
148 ErrorOr<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const {
149 COFFSymbolRef Symb = getCOFFSymbol(Ref);
157 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const {
158 return getCOFFSymbol(Ref).getValue();
161 ErrorOr<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const {
162 uint64_t Result = getSymbolValue(Ref);
163 COFFSymbolRef Symb = getCOFFSymbol(Ref);
182 SymbolRef::Type COFFObjectFile::getSymbolType(DataRefImpl Ref) const {
183 COFFSymbolRef Symb = getCOFFSymbol(Ref);
205 uint32_t COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
206 COFFSymbolRef Symb = getCOFFSymbol(Ref);
233 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const {
234 COFFSymbolRef Symb = getCOFFSymbol(Ref);
239 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const {
240 COFFSymbolRef Symb = getCOFFSymbol(Ref);
256 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const {
257 const coff_section *Sec = toSec(Ref);
259 Ref.p = reinterpret_cast<uintptr_t>(Sec);
262 std::error_code COFFObjectFile::getSectionName(DataRefImpl Ref,
264 const coff_section *Sec = toSec(Ref);
268 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const {
269 const coff_section *Sec = toSec(Ref);
278 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const {
279 return getSectionSize(toSec(Ref));
282 std::error_code COFFObjectFile::getSectionContents(DataRefImpl Ref,
284 const coff_section *Sec = toSec(Ref);
291 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
292 const coff_section *Sec = toSec(Ref);
296 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const {
297 const coff_section *Sec = toSec(Ref);
301 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const {
302 const coff_section *Sec = toSec(Ref);
306 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const {
307 const coff_section *Sec = toSec(Ref);
321 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
322 const coff_section *Sec = toSec(Ref);
362 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
363 const coff_section *Sec = toSec(Ref);
372 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
373 const coff_section *Sec = toSec(Ref);
722 ExportDirectoryEntryRef Ref(ExportDirectory,
724 return export_directory_iterator(Ref);
981 DataRefImpl Ref;
985 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable16 + R->SymbolTableIndex);
987 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex);
990 return symbol_iterator(SymbolRef(Ref, this));
1003 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const {
1005 return toSymb<coff_symbol16>(Ref);
1007 return toSymb<coff_symbol32>(Ref);