Lines Matching refs:Ref
101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const {
103 reinterpret_cast<const coff_symbol_type *>(Ref.p);
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
119 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p);
135 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const {
138 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref);
140 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End);
142 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref);
144 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End);
150 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const {
151 return getSymbolName(getCOFFSymbol(Ref));
154 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const {
155 return getCOFFSymbol(Ref).getValue();
158 uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const {
161 COFFSymbolRef Symb = getCOFFSymbol(Ref);
165 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const {
166 uint64_t Result = cantFail(getSymbolValue(Ref));
167 COFFSymbolRef Symb = getCOFFSymbol(Ref);
186 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const {
187 COFFSymbolRef Symb = getCOFFSymbol(Ref);
209 Expected<uint32_t> COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
210 COFFSymbolRef Symb = getCOFFSymbol(Ref);
240 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const {
241 COFFSymbolRef Symb = getCOFFSymbol(Ref);
246 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const {
247 COFFSymbolRef Symb = getCOFFSymbol(Ref);
263 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const {
264 const coff_section *Sec = toSec(Ref);
266 Ref.p = reinterpret_cast<uintptr_t>(Sec);
269 Expected<StringRef> COFFObjectFile::getSectionName(DataRefImpl Ref) const {
270 const coff_section *Sec = toSec(Ref);
274 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const {
275 const coff_section *Sec = toSec(Ref);
288 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const {
289 return getSectionSize(toSec(Ref));
293 COFFObjectFile::getSectionContents(DataRefImpl Ref) const {
294 const coff_section *Sec = toSec(Ref);
301 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
302 const coff_section *Sec = toSec(Ref);
310 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const {
311 const coff_section *Sec = toSec(Ref);
315 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const {
316 const coff_section *Sec = toSec(Ref);
320 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const {
321 const coff_section *Sec = toSec(Ref);
330 bool COFFObjectFile::isDebugSection(DataRefImpl Ref) const {
331 Expected<StringRef> SectionNameOrErr = getSectionName(Ref);
348 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
349 const coff_section *Sec = toSec(Ref);
395 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
396 const coff_section *Sec = toSec(Ref);
405 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
406 const coff_section *Sec = toSec(Ref);
1077 ExportDirectoryEntryRef Ref(ExportDirectory,
1079 return export_directory_iterator(Ref);
1332 DataRefImpl Ref;
1336 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable16 + R->SymbolTableIndex);
1338 Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex);
1341 return symbol_iterator(SymbolRef(Ref, this));
1354 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const {
1356 return toSymb<coff_symbol16>(Ref);
1358 return toSymb<coff_symbol32>(Ref);
1986 void DynamicRelocRef::getContents(ArrayRef<uint8_t> &Ref) const {
1991 Ref = ArrayRef(Header + sizeof(*H), H->BaseRelocSize);
1994 Ref = ArrayRef(Header + sizeof(*H), H->BaseRelocSize);
2000 Ref = ArrayRef(Header + H->HeaderSize, H->FixupInfoSize);
2003 Ref = ArrayRef(Header + H->HeaderSize, H->FixupInfoSize);