• Home
  • Raw
  • Download

Lines Matching refs:error_code

34 static bool checkSize(MemoryBufferRef M, std::error_code &EC, uint64_t Size) {  in checkSize()
42 static std::error_code checkOffset(MemoryBufferRef M, uintptr_t Addr, in checkOffset()
49 return std::error_code(); in checkOffset()
55 static std::error_code getObject(const T *&Obj, MemoryBufferRef M, in getObject()
59 if (std::error_code EC = checkOffset(M, Addr, Size)) in getObject()
62 return std::error_code(); in getObject()
150 std::error_code EC = getSymbolName(Symb, Result); in getSymbolName()
170 if (std::error_code EC = getSection(SectionNumber, Section)) in getSymbolAddress()
243 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec)) in getSymbolSection()
261 std::error_code COFFObjectFile::getSectionName(DataRefImpl Ref, in getSectionName()
281 std::error_code COFFObjectFile::getSectionContents(DataRefImpl Ref, in getSectionContents()
285 std::error_code EC = getSectionContents(Sec, Res); in getSectionContents()
386 std::error_code COFFObjectFile::initSymbolTablePtr() { in initSymbolTablePtr()
388 if (std::error_code EC = getObject( in initSymbolTablePtr()
394 if (std::error_code EC = getObject( in initSymbolTablePtr()
406 if (std::error_code EC = getObject(StringTableSizePtr, Data, StringTableAddr)) in initSymbolTablePtr()
409 if (std::error_code EC = in initSymbolTablePtr()
421 return std::error_code(); in initSymbolTablePtr()
434 std::error_code COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const { in getVaPtr()
442 std::error_code COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res) const { in getRvaPtr()
450 return std::error_code(); in getRvaPtr()
456 std::error_code
471 return std::error_code(); in getRvaAndSizeAsBytes()
479 std::error_code COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint, in getHintName()
482 if (std::error_code EC = getRvaPtr(Rva, IntPtr)) in getHintName()
487 return std::error_code(); in getHintName()
490 std::error_code COFFObjectFile::getDebugPDBInfo(const debug_directory *DebugDir, in getDebugPDBInfo()
494 if (std::error_code EC = getRvaAndSizeAsBytes( in getDebugPDBInfo()
505 return std::error_code(); in getDebugPDBInfo()
508 std::error_code COFFObjectFile::getDebugPDBInfo(const debug_pdb_info *&PDBInfo, in getDebugPDBInfo()
516 return std::error_code(); in getDebugPDBInfo()
520 std::error_code COFFObjectFile::initImportTablePtr() { in initImportTablePtr()
525 return std::error_code(); in initImportTablePtr()
529 return std::error_code(); in initImportTablePtr()
536 if (std::error_code EC = getRvaPtr(ImportTableRva, IntPtr)) in initImportTablePtr()
538 if (std::error_code EC = checkOffset(Data, IntPtr, DataEntry->Size)) in initImportTablePtr()
542 return std::error_code(); in initImportTablePtr()
546 std::error_code COFFObjectFile::initDelayImportTablePtr() { in initDelayImportTablePtr()
549 return std::error_code(); in initDelayImportTablePtr()
551 return std::error_code(); in initDelayImportTablePtr()
558 if (std::error_code EC = getRvaPtr(RVA, IntPtr)) in initDelayImportTablePtr()
562 return std::error_code(); in initDelayImportTablePtr()
566 std::error_code COFFObjectFile::initExportTablePtr() { in initExportTablePtr()
571 return std::error_code(); in initExportTablePtr()
575 return std::error_code(); in initExportTablePtr()
579 if (std::error_code EC = getRvaPtr(ExportTableRva, IntPtr)) in initExportTablePtr()
583 return std::error_code(); in initExportTablePtr()
586 std::error_code COFFObjectFile::initBaseRelocPtr() { in initBaseRelocPtr()
589 return std::error_code(); in initBaseRelocPtr()
591 return std::error_code(); in initBaseRelocPtr()
594 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr)) in initBaseRelocPtr()
600 return std::error_code(); in initBaseRelocPtr()
603 std::error_code COFFObjectFile::initDebugDirectoryPtr() { in initDebugDirectoryPtr()
607 return std::error_code(); in initDebugDirectoryPtr()
611 return std::error_code(); in initDebugDirectoryPtr()
618 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr)) in initDebugDirectoryPtr()
621 if (std::error_code EC = getRvaPtr( in initDebugDirectoryPtr()
625 return std::error_code(); in initDebugDirectoryPtr()
628 COFFObjectFile::COFFObjectFile(MemoryBufferRef Object, std::error_code &EC) in COFFObjectFile()
690 EC = std::error_code(); in COFFObjectFile()
756 EC = std::error_code(); in COFFObjectFile()
888 std::error_code COFFObjectFile::getPE32Header(const pe32_header *&Res) const { in getPE32Header()
890 return std::error_code(); in getPE32Header()
893 std::error_code
896 return std::error_code(); in getPE32PlusHeader()
899 std::error_code
915 return std::error_code(); in getDataDirectory()
918 std::error_code COFFObjectFile::getSection(int32_t Index, in getSection()
922 return std::error_code(); in getSection()
926 return std::error_code(); in getSection()
931 std::error_code COFFObjectFile::getString(uint32_t Offset, in getString()
939 return std::error_code(); in getString()
942 std::error_code COFFObjectFile::getSymbolName(COFFSymbolRef Symbol, in getSymbolName()
947 std::error_code COFFObjectFile::getSymbolName(const coff_symbol_generic *Symbol, in getSymbolName()
951 if (std::error_code EC = getString(Symbol->Name.Offset.Offset, Res)) in getSymbolName()
953 return std::error_code(); in getSymbolName()
962 return std::error_code(); in getSymbolName()
988 std::error_code COFFObjectFile::getSectionName(const coff_section *Sec, in getSectionName()
1008 if (std::error_code EC = getString(Offset, Name)) in getSectionName()
1013 return std::error_code(); in getSectionName()
1032 std::error_code
1047 return std::error_code(); in getSectionContents()
1210 std::error_code ImportDirectoryEntryRef::getImportTableEntry( in getImportTableEntry()
1268 std::error_code ImportDirectoryEntryRef::getName(StringRef &Result) const { in getName()
1270 if (std::error_code EC = in getName()
1274 return std::error_code(); in getName()
1277 std::error_code
1280 return std::error_code(); in getImportLookupTableRVA()
1283 std::error_code
1286 return std::error_code(); in getImportAddressTableRVA()
1315 std::error_code DelayImportDirectoryEntryRef::getName(StringRef &Result) const { in getName()
1317 if (std::error_code EC = OwningObject->getRvaPtr(Table[Index].Name, IntPtr)) in getName()
1320 return std::error_code(); in getName()
1323 std::error_code DelayImportDirectoryEntryRef::
1326 return std::error_code(); in getDelayImportTable()
1329 std::error_code DelayImportDirectoryEntryRef::
1334 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getImportAddress()
1340 return std::error_code(); in getImportAddress()
1354 std::error_code ExportDirectoryEntryRef::getDllName(StringRef &Result) const { in getDllName()
1356 if (std::error_code EC = in getDllName()
1360 return std::error_code(); in getDllName()
1364 std::error_code
1367 return std::error_code(); in getOrdinalBase()
1371 std::error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const { in getOrdinal()
1373 return std::error_code(); in getOrdinal()
1377 std::error_code ExportDirectoryEntryRef::getExportRVA(uint32_t &Result) const { in getExportRVA()
1379 if (std::error_code EC = in getExportRVA()
1385 return std::error_code(); in getExportRVA()
1390 std::error_code
1393 if (std::error_code EC = in getSymbolName()
1404 if (std::error_code EC = in getSymbolName()
1408 if (std::error_code EC = OwningObject->getRvaPtr(NamePtr[Offset], IntPtr)) in getSymbolName()
1411 return std::error_code(); in getSymbolName()
1414 return std::error_code(); in getSymbolName()
1417 std::error_code ExportDirectoryEntryRef::isForwarder(bool &Result) const { in isForwarder()
1427 return std::error_code(); in isForwarder()
1430 std::error_code ExportDirectoryEntryRef::getForwardTo(StringRef &Result) const { in getForwardTo()
1438 return std::error_code(); in getForwardTo()
1451 std::error_code
1457 return std::error_code(); in getSymbolName()
1461 return std::error_code(); in getSymbolName()
1465 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getSymbolName()
1469 return std::error_code(); in getSymbolName()
1472 std::error_code ImportedSymbolRef::isOrdinal(bool &Result) const { in isOrdinal()
1477 return std::error_code(); in isOrdinal()
1480 std::error_code ImportedSymbolRef::getHintNameRVA(uint32_t &Result) const { in getHintNameRVA()
1485 return std::error_code(); in getHintNameRVA()
1488 std::error_code ImportedSymbolRef::getOrdinal(uint16_t &Result) const { in getOrdinal()
1493 return std::error_code(); in getOrdinal()
1499 return std::error_code(); in getOrdinal()
1504 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getOrdinal()
1507 return std::error_code(); in getOrdinal()
1512 std::error_code EC; in createCOFFObjectFile()
1541 std::error_code BaseRelocRef::getType(uint8_t &Type) const { in getType()
1544 return std::error_code(); in getType()
1547 std::error_code BaseRelocRef::getRVA(uint32_t &Result) const { in getRVA()
1550 return std::error_code(); in getRVA()