Lines Matching refs:error_code

47 static bool checkSize(MemoryBufferRef M, std::error_code &EC, uint64_t Size) {  in checkSize()
58 static std::error_code getObject(const T *&Obj, MemoryBufferRef M, in getObject()
62 if (std::error_code EC = Binary::checkOffset(M, Addr, Size)) in getObject()
65 return std::error_code(); in getObject()
153 if (std::error_code EC = getSymbolName(Symb, Result)) in getSymbolName()
179 if (std::error_code EC = getSection(SectionNumber, Section)) in getSymbolAddress()
255 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec)) in getSymbolSection()
273 std::error_code COFFObjectFile::getSectionName(DataRefImpl Ref, in getSectionName()
297 std::error_code COFFObjectFile::getSectionContents(DataRefImpl Ref, in getSectionContents()
301 std::error_code EC = getSectionContents(Sec, Res); in getSectionContents()
403 std::error_code COFFObjectFile::initSymbolTablePtr() { in initSymbolTablePtr()
405 if (std::error_code EC = getObject( in initSymbolTablePtr()
411 if (std::error_code EC = getObject( in initSymbolTablePtr()
423 if (std::error_code EC = getObject(StringTableSizePtr, Data, StringTableAddr)) in initSymbolTablePtr()
426 if (std::error_code EC = in initSymbolTablePtr()
438 return std::error_code(); in initSymbolTablePtr()
451 std::error_code COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const { in getVaPtr()
459 std::error_code COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res) const { in getRvaPtr()
467 return std::error_code(); in getRvaPtr()
473 std::error_code
488 return std::error_code(); in getRvaAndSizeAsBytes()
496 std::error_code COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint, in getHintName()
499 if (std::error_code EC = getRvaPtr(Rva, IntPtr)) in getHintName()
504 return std::error_code(); in getHintName()
507 std::error_code
512 if (std::error_code EC = getRvaAndSizeAsBytes( in getDebugPDBInfo()
523 return std::error_code(); in getDebugPDBInfo()
526 std::error_code
535 return std::error_code(); in getDebugPDBInfo()
539 std::error_code COFFObjectFile::initImportTablePtr() { in initImportTablePtr()
544 return std::error_code(); in initImportTablePtr()
548 return std::error_code(); in initImportTablePtr()
555 if (std::error_code EC = getRvaPtr(ImportTableRva, IntPtr)) in initImportTablePtr()
557 if (std::error_code EC = checkOffset(Data, IntPtr, DataEntry->Size)) in initImportTablePtr()
561 return std::error_code(); in initImportTablePtr()
565 std::error_code COFFObjectFile::initDelayImportTablePtr() { in initDelayImportTablePtr()
568 return std::error_code(); in initDelayImportTablePtr()
570 return std::error_code(); in initDelayImportTablePtr()
577 if (std::error_code EC = getRvaPtr(RVA, IntPtr)) in initDelayImportTablePtr()
581 return std::error_code(); in initDelayImportTablePtr()
585 std::error_code COFFObjectFile::initExportTablePtr() { in initExportTablePtr()
590 return std::error_code(); in initExportTablePtr()
594 return std::error_code(); in initExportTablePtr()
598 if (std::error_code EC = getRvaPtr(ExportTableRva, IntPtr)) in initExportTablePtr()
602 return std::error_code(); in initExportTablePtr()
605 std::error_code COFFObjectFile::initBaseRelocPtr() { in initBaseRelocPtr()
608 return std::error_code(); in initBaseRelocPtr()
610 return std::error_code(); in initBaseRelocPtr()
613 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr)) in initBaseRelocPtr()
621 return std::error_code(); in initBaseRelocPtr()
624 std::error_code COFFObjectFile::initDebugDirectoryPtr() { in initDebugDirectoryPtr()
628 return std::error_code(); in initDebugDirectoryPtr()
632 return std::error_code(); in initDebugDirectoryPtr()
639 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr)) in initDebugDirectoryPtr()
646 return std::error_code(); in initDebugDirectoryPtr()
649 std::error_code COFFObjectFile::initLoadConfigPtr() { in initLoadConfigPtr()
653 return std::error_code(); in initLoadConfigPtr()
657 return std::error_code(); in initLoadConfigPtr()
659 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr)) in initLoadConfigPtr()
663 return std::error_code(); in initLoadConfigPtr()
666 COFFObjectFile::COFFObjectFile(MemoryBufferRef Object, std::error_code &EC) in COFFObjectFile()
728 EC = std::error_code(); in COFFObjectFile()
803 EC = std::error_code(); in COFFObjectFile()
941 std::error_code
944 return std::error_code(); in getCOFFHeader()
947 std::error_code
950 return std::error_code(); in getCOFFBigObjHeader()
953 std::error_code COFFObjectFile::getPE32Header(const pe32_header *&Res) const { in getPE32Header()
955 return std::error_code(); in getPE32Header()
958 std::error_code
961 return std::error_code(); in getPE32PlusHeader()
964 std::error_code
980 return std::error_code(); in getDataDirectory()
983 std::error_code COFFObjectFile::getSection(int32_t Index, in getSection()
987 return std::error_code(); in getSection()
991 return std::error_code(); in getSection()
996 std::error_code COFFObjectFile::getSection(StringRef SectionName, in getSection()
1001 if (std::error_code E = Section.getName(SecName)) in getSection()
1005 return std::error_code(); in getSection()
1011 std::error_code COFFObjectFile::getString(uint32_t Offset, in getString()
1019 return std::error_code(); in getString()
1022 std::error_code COFFObjectFile::getSymbolName(COFFSymbolRef Symbol, in getSymbolName()
1027 std::error_code COFFObjectFile::getSymbolName(const coff_symbol_generic *Symbol, in getSymbolName()
1031 if (std::error_code EC = getString(Symbol->Name.Offset.Offset, Res)) in getSymbolName()
1033 return std::error_code(); in getSymbolName()
1042 return std::error_code(); in getSymbolName()
1078 std::error_code COFFObjectFile::getSectionName(const coff_section *Sec, in getSectionName()
1098 if (std::error_code EC = getString(Offset, Name)) in getSectionName()
1103 return std::error_code(); in getSectionName()
1122 std::error_code
1128 return std::error_code(); in getSectionContents()
1137 return std::error_code(); in getSectionContents()
1328 std::error_code ImportDirectoryEntryRef::getImportTableEntry( in getImportTableEntry()
1401 std::error_code ImportDirectoryEntryRef::getName(StringRef &Result) const { in getName()
1403 if (std::error_code EC = in getName()
1407 return std::error_code(); in getName()
1410 std::error_code
1413 return std::error_code(); in getImportLookupTableRVA()
1416 std::error_code
1419 return std::error_code(); in getImportAddressTableRVA()
1448 std::error_code DelayImportDirectoryEntryRef::getName(StringRef &Result) const { in getName()
1450 if (std::error_code EC = OwningObject->getRvaPtr(Table[Index].Name, IntPtr)) in getName()
1453 return std::error_code(); in getName()
1456 std::error_code DelayImportDirectoryEntryRef::
1459 return std::error_code(); in getDelayImportTable()
1462 std::error_code DelayImportDirectoryEntryRef::
1467 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getImportAddress()
1473 return std::error_code(); in getImportAddress()
1487 std::error_code ExportDirectoryEntryRef::getDllName(StringRef &Result) const { in getDllName()
1489 if (std::error_code EC = in getDllName()
1493 return std::error_code(); in getDllName()
1497 std::error_code
1500 return std::error_code(); in getOrdinalBase()
1504 std::error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const { in getOrdinal()
1506 return std::error_code(); in getOrdinal()
1510 std::error_code ExportDirectoryEntryRef::getExportRVA(uint32_t &Result) const { in getExportRVA()
1512 if (std::error_code EC = in getExportRVA()
1518 return std::error_code(); in getExportRVA()
1523 std::error_code
1526 if (std::error_code EC = in getSymbolName()
1537 if (std::error_code EC = in getSymbolName()
1541 if (std::error_code EC = OwningObject->getRvaPtr(NamePtr[Offset], IntPtr)) in getSymbolName()
1544 return std::error_code(); in getSymbolName()
1547 return std::error_code(); in getSymbolName()
1550 std::error_code ExportDirectoryEntryRef::isForwarder(bool &Result) const { in isForwarder()
1560 return std::error_code(); in isForwarder()
1563 std::error_code ExportDirectoryEntryRef::getForwardTo(StringRef &Result) const { in getForwardTo()
1571 return std::error_code(); in getForwardTo()
1584 std::error_code
1590 return std::error_code(); in getSymbolName()
1594 return std::error_code(); in getSymbolName()
1598 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getSymbolName()
1602 return std::error_code(); in getSymbolName()
1605 std::error_code ImportedSymbolRef::isOrdinal(bool &Result) const { in isOrdinal()
1610 return std::error_code(); in isOrdinal()
1613 std::error_code ImportedSymbolRef::getHintNameRVA(uint32_t &Result) const { in getHintNameRVA()
1618 return std::error_code(); in getHintNameRVA()
1621 std::error_code ImportedSymbolRef::getOrdinal(uint16_t &Result) const { in getOrdinal()
1626 return std::error_code(); in getOrdinal()
1632 return std::error_code(); in getOrdinal()
1637 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr)) in getOrdinal()
1640 return std::error_code(); in getOrdinal()
1645 std::error_code EC; in createCOFFObjectFile()
1674 std::error_code BaseRelocRef::getType(uint8_t &Type) const { in getType()
1677 return std::error_code(); in getType()
1680 std::error_code BaseRelocRef::getRVA(uint32_t &Result) const { in getRVA()
1683 return std::error_code(); in getRVA()