LLVM API Documentation
#include <COFF.h>
Definition at line 419 of file Object/COFF.h.
COFFObjectFile::COFFObjectFile | ( | MemoryBufferRef | Object, |
std::error_code & | EC | ||
) |
Definition at line 528 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::COFF::BigObjMagic, checkSize(), llvm::object::Binary::Data, getNumberOfSections(), getObject(), getPointerToSymbolTable(), llvm::COFF::IMAGE_FILE_MACHINE_UNKNOWN, llvm::object::coff_file_header::isImportLibrary(), llvm::object::coff_file_header::Machine, llvm::object::pe32_header::Magic, llvm::LibFunc::memcmp, llvm::COFF::BigObjHeader::MinBigObjectVersion, llvm::object::pe32_header::NumberOfRvaAndSize, llvm::object::pe32plus_header::NumberOfRvaAndSize, llvm::object::coff_file_header::NumberOfSections, llvm::object::parse_failed, llvm::COFF::PEMagic, llvm::object::coff_file_header::SizeOfOptionalHeader, llvm::object::success, llvm::object::coff_bigobj_file_header::UUID, and llvm::object::coff_bigobj_file_header::Version.
static bool llvm::object::COFFObjectFile::classof | ( | const Binary * | v | ) | [inline, static] |
Reimplemented from llvm::object::ObjectFile.
Definition at line 640 of file Object/COFF.h.
References llvm::object::Binary::isCOFF().
Definition at line 663 of file COFFObjectFile.cpp.
References ExportDirectoryEntryRef.
Definition at line 668 of file COFFObjectFile.cpp.
References llvm::object::export_directory_table_entry::AddressTableEntries, and ExportDirectoryEntryRef.
unsigned COFFObjectFile::getArch | ( | ) | const [override, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 707 of file COFFObjectFile.cpp.
References getMachine(), llvm::COFF::IMAGE_FILE_MACHINE_AMD64, llvm::COFF::IMAGE_FILE_MACHINE_ARMNT, llvm::COFF::IMAGE_FILE_MACHINE_I386, llvm::Triple::thumb, llvm::Triple::UnknownArch, llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by getBytesInAddress().
std::error_code llvm::object::COFFObjectFile::getAuxSymbol | ( | uint32_t | index, |
const T *& | Res | ||
) | const [inline] |
Definition at line 610 of file Object/COFF.h.
References llvm::ErrorOr< T >::getError(), getSymbol(), and llvm::object::success.
uint8_t COFFObjectFile::getBytesInAddress | ( | ) | const [override, virtual] |
The number of bytes used to represent an address in this object file format.
Implements llvm::object::ObjectFile.
Definition at line 690 of file COFFObjectFile.cpp.
References getArch(), and llvm::Triple::x86_64.
uint16_t llvm::object::COFFObjectFile::getCharacteristics | ( | ) | const [inline] |
Definition at line 471 of file Object/COFF.h.
References llvm::object::coff_file_header::Characteristics, and llvm_unreachable.
const coff_relocation * COFFObjectFile::getCOFFRelocation | ( | const RelocationRef & | Reloc | ) | const |
Definition at line 912 of file COFFObjectFile.cpp.
References llvm::object::RelocationRef::getRawDataRefImpl().
const coff_section * COFFObjectFile::getCOFFSection | ( | const SectionRef & | Section | ) | const |
Definition at line 895 of file COFFObjectFile.cpp.
References llvm::object::SectionRef::getRawDataRefImpl().
Referenced by getRvaPtr().
COFFSymbolRef llvm::object::COFFObjectFile::getCOFFSymbol | ( | const DataRefImpl & | Ref | ) | const |
Referenced by getSymbolAddress(), getSymbolFlags(), getSymbolSection(), getSymbolSize(), getSymbolType(), and sectionContainsSymbol().
COFFSymbolRef llvm::object::COFFObjectFile::getCOFFSymbol | ( | const SymbolRef & | Symbol | ) | const |
std::error_code COFFObjectFile::getDataDirectory | ( | uint32_t | index, |
const data_directory *& | Res | ||
) | const |
Definition at line 732 of file COFFObjectFile.cpp.
References llvm::object::pe32_header::NumberOfRvaAndSize, llvm::object::pe32plus_header::NumberOfRvaAndSize, llvm::object::parse_failed, and llvm::object::success.
StringRef COFFObjectFile::getFileFormatName | ( | ) | const [override, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 694 of file COFFObjectFile.cpp.
References getMachine(), llvm::COFF::IMAGE_FILE_MACHINE_AMD64, llvm::COFF::IMAGE_FILE_MACHINE_ARMNT, and llvm::COFF::IMAGE_FILE_MACHINE_I386.
std::error_code COFFObjectFile::getHintName | ( | uint32_t | Rva, |
uint16_t & | Hint, | ||
StringRef & | Name | ||
) | const |
Definition at line 470 of file COFFObjectFile.cpp.
References getRvaPtr(), and llvm::object::success.
uint16_t llvm::object::COFFObjectFile::getMachine | ( | ) | const [inline] |
Definition at line 456 of file Object/COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::Machine, and llvm::object::coff_bigobj_file_header::Machine.
Referenced by getArch(), getFileFormatName(), and getRelocationTypeName().
uint32_t llvm::object::COFFObjectFile::getNumberOfSections | ( | ) | const [inline] |
Definition at line 487 of file Object/COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::NumberOfSections, and llvm::object::coff_bigobj_file_header::NumberOfSections.
Referenced by COFFObjectFile(), getSection(), and section_end().
uint32_t llvm::object::COFFObjectFile::getNumberOfSymbols | ( | ) | const [inline] |
Definition at line 501 of file Object/COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::NumberOfSymbols, and llvm::object::coff_bigobj_file_header::NumberOfSymbols.
Referenced by getSymbol(), getSymbolAuxData(), and toSymb().
std::error_code COFFObjectFile::getPE32Header | ( | const pe32_header *& | Res | ) | const |
Definition at line 720 of file COFFObjectFile.cpp.
References llvm::object::success.
std::error_code COFFObjectFile::getPE32PlusHeader | ( | const pe32plus_header *& | Res | ) | const |
Definition at line 726 of file COFFObjectFile.cpp.
References llvm::object::success.
uint32_t llvm::object::COFFObjectFile::getPointerToSymbolTable | ( | ) | const [inline] |
Definition at line 494 of file Object/COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::PointerToSymbolTable, and llvm::object::coff_bigobj_file_header::PointerToSymbolTable.
Referenced by COFFObjectFile(), getSymbolAuxData(), and toSymb().
std::error_code COFFObjectFile::getRelocationAddress | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 864 of file COFFObjectFile.cpp.
References llvm::report_fatal_error().
std::error_code COFFObjectFile::getRelocationOffset | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 869 of file COFFObjectFile.cpp.
References llvm::object::success, and llvm::object::coff_relocation::VirtualAddress.
symbol_iterator COFFObjectFile::getRelocationSymbol | ( | DataRefImpl | Rel | ) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 875 of file COFFObjectFile.cpp.
References llvm_unreachable, llvm::object::DataRefImpl::p, llvm::object::ObjectFile::SymbolRef, and llvm::object::coff_relocation::SymbolTableIndex.
std::error_code COFFObjectFile::getRelocationType | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 887 of file COFFObjectFile.cpp.
References llvm::object::success, and llvm::object::coff_relocation::Type.
std::error_code COFFObjectFile::getRelocationTypeName | ( | DataRefImpl | Rel, |
SmallVectorImpl< char > & | Result | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 922 of file COFFObjectFile.cpp.
References llvm::SmallVectorImpl< T >::append(), llvm::StringRef::begin(), llvm::StringRef::end(), getMachine(), llvm::COFF::IMAGE_FILE_MACHINE_AMD64, llvm::COFF::IMAGE_FILE_MACHINE_ARMNT, llvm::COFF::IMAGE_FILE_MACHINE_I386, llvm::COFF::IMAGE_REL_AMD64_ABSOLUTE, llvm::COFF::IMAGE_REL_AMD64_ADDR32, llvm::COFF::IMAGE_REL_AMD64_ADDR32NB, llvm::COFF::IMAGE_REL_AMD64_ADDR64, llvm::COFF::IMAGE_REL_AMD64_PAIR, llvm::COFF::IMAGE_REL_AMD64_REL32, llvm::COFF::IMAGE_REL_AMD64_REL32_1, llvm::COFF::IMAGE_REL_AMD64_REL32_2, llvm::COFF::IMAGE_REL_AMD64_REL32_3, llvm::COFF::IMAGE_REL_AMD64_REL32_4, llvm::COFF::IMAGE_REL_AMD64_REL32_5, llvm::COFF::IMAGE_REL_AMD64_SECREL, llvm::COFF::IMAGE_REL_AMD64_SECREL7, llvm::COFF::IMAGE_REL_AMD64_SECTION, llvm::COFF::IMAGE_REL_AMD64_SREL32, llvm::COFF::IMAGE_REL_AMD64_SSPAN32, llvm::COFF::IMAGE_REL_AMD64_TOKEN, llvm::COFF::IMAGE_REL_ARM_ABSOLUTE, llvm::COFF::IMAGE_REL_ARM_ADDR32, llvm::COFF::IMAGE_REL_ARM_ADDR32NB, llvm::COFF::IMAGE_REL_ARM_BLX11, llvm::COFF::IMAGE_REL_ARM_BLX23T, llvm::COFF::IMAGE_REL_ARM_BLX24, llvm::COFF::IMAGE_REL_ARM_BRANCH11, llvm::COFF::IMAGE_REL_ARM_BRANCH20T, llvm::COFF::IMAGE_REL_ARM_BRANCH24, llvm::COFF::IMAGE_REL_ARM_BRANCH24T, llvm::COFF::IMAGE_REL_ARM_MOV32A, llvm::COFF::IMAGE_REL_ARM_MOV32T, llvm::COFF::IMAGE_REL_ARM_SECREL, llvm::COFF::IMAGE_REL_ARM_SECTION, llvm::COFF::IMAGE_REL_ARM_TOKEN, llvm::COFF::IMAGE_REL_I386_ABSOLUTE, llvm::COFF::IMAGE_REL_I386_DIR16, llvm::COFF::IMAGE_REL_I386_DIR32, llvm::COFF::IMAGE_REL_I386_DIR32NB, llvm::COFF::IMAGE_REL_I386_REL16, llvm::COFF::IMAGE_REL_I386_REL32, llvm::COFF::IMAGE_REL_I386_SECREL, llvm::COFF::IMAGE_REL_I386_SECREL7, llvm::COFF::IMAGE_REL_I386_SECTION, llvm::COFF::IMAGE_REL_I386_SEG12, llvm::COFF::IMAGE_REL_I386_TOKEN, LLVM_COFF_SWITCH_RELOC_TYPE_NAME, llvm::object::success, and llvm::object::coff_relocation::Type.
std::error_code COFFObjectFile::getRelocationValueString | ( | DataRefImpl | Rel, |
SmallVectorImpl< char > & | Result | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 998 of file COFFObjectFile.cpp.
References llvm::SmallVectorImpl< T >::append(), llvm::StringRef::begin(), llvm::StringRef::end(), llvm::ErrorOr< T >::getError(), getSymbol(), getSymbolName(), llvm::object::DataRefImpl::p, llvm::object::success, and llvm::object::coff_relocation::SymbolTableIndex.
std::error_code COFFObjectFile::getRvaPtr | ( | uint32_t | Rva, |
uintptr_t & | Res | ||
) | const |
Definition at line 454 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), getCOFFSection(), llvm::object::parse_failed, llvm::object::coff_section::PointerToRawData, llvm::ARMBuildAttrs::Section, llvm::object::ObjectFile::sections(), llvm::object::success, llvm::object::coff_section::VirtualAddress, and llvm::object::coff_section::VirtualSize.
Referenced by llvm::object::ExportDirectoryEntryRef::getDllName(), llvm::object::ExportDirectoryEntryRef::getExportRVA(), getHintName(), llvm::object::ImportDirectoryEntryRef::getImportLookupEntry(), llvm::object::ImportDirectoryEntryRef::getName(), llvm::object::ExportDirectoryEntryRef::getSymbolName(), and getVaPtr().
std::error_code COFFObjectFile::getSection | ( | int32_t | index, |
const coff_section *& | Res | ||
) | const |
Definition at line 746 of file COFFObjectFile.cpp.
References getNumberOfSections(), llvm::COFF::isReservedSectionNumber(), llvm::object::parse_failed, and llvm::object::success.
Referenced by getSymbolAddress(), getSymbolSection(), getSymbolSize(), getSymbolType(), and sectionContainsSymbol().
std::error_code COFFObjectFile::getSectionAddress | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 262 of file COFFObjectFile.cpp.
References llvm::object::success, and llvm::object::coff_section::VirtualAddress.
std::error_code COFFObjectFile::getSectionAlignment | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 285 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::object::parse_failed, and llvm::object::success.
std::error_code llvm::object::COFFObjectFile::getSectionContents | ( | DataRefImpl | Sec, |
StringRef & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
std::error_code llvm::object::COFFObjectFile::getSectionContents | ( | const coff_section * | Sec, |
ArrayRef< uint8_t > & | Res | ||
) | const |
std::error_code llvm::object::COFFObjectFile::getSectionName | ( | DataRefImpl | Sec, |
StringRef & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
std::error_code llvm::object::COFFObjectFile::getSectionName | ( | const coff_section * | Sec, |
StringRef & | Res | ||
) | const |
std::error_code COFFObjectFile::getSectionSize | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 269 of file COFFObjectFile.cpp.
References llvm::object::coff_section::SizeOfRawData, and llvm::object::success.
uint16_t llvm::object::COFFObjectFile::getSizeOfOptionalHeader | ( | ) | const [inline] |
Definition at line 463 of file Object/COFF.h.
References llvm_unreachable, and llvm::object::coff_file_header::SizeOfOptionalHeader.
std::error_code llvm::object::COFFObjectFile::getSymbol | ( | uint32_t | Index, |
const coff_symbol_type *& | Res | ||
) | const [inline] |
Definition at line 586 of file Object/COFF.h.
References getNumberOfSymbols(), getSymbolTable(), llvm::object::parse_failed, and llvm::object::success.
Referenced by getAuxSymbol(), getRelocationValueString(), and getSymbol().
ErrorOr<COFFSymbolRef> llvm::object::COFFObjectFile::getSymbol | ( | uint32_t | index | ) | const [inline] |
Definition at line 594 of file Object/COFF.h.
References getSymbol(), and llvm_unreachable.
std::error_code COFFObjectFile::getSymbolAddress | ( | DataRefImpl | Symb, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 146 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::COFFSymbolRef::getValue(), llvm::COFF::IMAGE_SYM_UNDEFINED, llvm::ARMBuildAttrs::Section, llvm::object::success, llvm::object::UnknownAddressOrSize, and llvm::object::coff_section::VirtualAddress.
ArrayRef< uint8_t > COFFObjectFile::getSymbolAuxData | ( | COFFSymbolRef | Symbol | ) | const |
Definition at line 790 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::object::COFFSymbolRef::getNumberOfAuxSymbols(), getNumberOfSymbols(), getPointerToSymbolTable(), llvm::object::COFFSymbolRef::getRawPtr(), getSymbolTableEntrySize(), llvm::makeArrayRef(), and llvm::report_fatal_error().
uint32_t COFFObjectFile::getSymbolFlags | ( | DataRefImpl | Symb | ) | const [override, protected, virtual] |
Implements llvm::object::SymbolicFile.
Definition at line 187 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::COFFSymbolRef::getStorageClass(), llvm::object::COFFSymbolRef::getValue(), llvm::COFF::IMAGE_SYM_ABSOLUTE, llvm::COFF::IMAGE_SYM_CLASS_EXTERNAL, llvm::COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL, llvm::COFF::IMAGE_SYM_UNDEFINED, llvm::object::BasicSymbolRef::SF_Absolute, llvm::object::BasicSymbolRef::SF_Common, llvm::object::BasicSymbolRef::SF_Global, llvm::object::BasicSymbolRef::SF_None, llvm::object::BasicSymbolRef::SF_Undefined, and llvm::object::BasicSymbolRef::SF_Weak.
std::error_code llvm::object::COFFObjectFile::getSymbolName | ( | DataRefImpl | Symb, |
StringRef & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Referenced by getRelocationValueString().
std::error_code llvm::object::COFFObjectFile::getSymbolName | ( | COFFSymbolRef | Symbol, |
StringRef & | Res | ||
) | const |
std::error_code COFFObjectFile::getSymbolSection | ( | DataRefImpl | Symb, |
section_iterator & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 234 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::COFF::isReservedSectionNumber(), llvm::object::DataRefImpl::p, section_end(), llvm::object::ObjectFile::SectionRef, and llvm::object::success.
std::error_code COFFObjectFile::getSymbolSize | ( | DataRefImpl | Symb, |
uint64_t & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 214 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::COFFSymbolRef::getValue(), llvm::COFF::IMAGE_SYM_UNDEFINED, llvm::ARMBuildAttrs::Section, llvm::object::coff_section::SizeOfRawData, llvm::object::success, and llvm::object::UnknownAddressOrSize.
uintptr_t llvm::object::COFFObjectFile::getSymbolTable | ( | ) | const [inline] |
Definition at line 449 of file Object/COFF.h.
Referenced by getSymbol(), and symbol_begin_impl().
size_t llvm::object::COFFObjectFile::getSymbolTableEntrySize | ( | ) | const [inline] |
Definition at line 621 of file Object/COFF.h.
References llvm_unreachable.
Referenced by getSymbolAuxData().
std::error_code COFFObjectFile::getSymbolType | ( | DataRefImpl | Symb, |
SymbolRef::Type & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 162 of file COFFObjectFile.cpp.
References Characteristics, llvm::object::coff_section::Characteristics, getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::COFFSymbolRef::getStorageClass(), llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_WRITE, llvm::COFF::IMAGE_SYM_CLASS_EXTERNAL, llvm::COFF::IMAGE_SYM_UNDEFINED, llvm::object::COFFSymbolRef::isFunctionDefinition(), llvm::COFF::isReservedSectionNumber(), llvm::ARMBuildAttrs::Section, llvm::object::SymbolRef::ST_Data, llvm::object::SymbolRef::ST_Function, llvm::object::SymbolRef::ST_Other, llvm::object::SymbolRef::ST_Unknown, and llvm::object::success.
uint32_t llvm::object::COFFObjectFile::getTimeDateStamp | ( | ) | const [inline] |
Definition at line 480 of file Object/COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::TimeDateStamp, and llvm::object::coff_bigobj_file_header::TimeDateStamp.
std::error_code COFFObjectFile::getVaPtr | ( | uint64_t | VA, |
uintptr_t & | Res | ||
) | const |
Definition at line 445 of file COFFObjectFile.cpp.
References getRvaPtr(), llvm::object::pe32_header::ImageBase, and llvm::object::pe32plus_header::ImageBase.
Definition at line 653 of file COFFObjectFile.cpp.
References ImportDirectoryEntryRef.
Definition at line 658 of file COFFObjectFile.cpp.
References ImportDirectoryEntryRef.
bool COFFObjectFile::isRelocatableObject | ( | ) | const [override, virtual] |
True if this is a relocatable object (.o/.obj).
Implements llvm::object::ObjectFile.
Definition at line 1013 of file COFFObjectFile.cpp.
std::error_code COFFObjectFile::isSectionBSS | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 308 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, and llvm::object::success.
std::error_code COFFObjectFile::isSectionData | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 301 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, and llvm::object::success.
std::error_code COFFObjectFile::isSectionReadOnlyData | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 337 of file COFFObjectFile.cpp.
References llvm::object::success.
std::error_code COFFObjectFile::isSectionRequiredForExecution | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 316 of file COFFObjectFile.cpp.
References llvm::object::success.
std::error_code COFFObjectFile::isSectionText | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 294 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_CODE, and llvm::object::success.
std::error_code COFFObjectFile::isSectionVirtual | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 323 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, and llvm::object::success.
std::error_code COFFObjectFile::isSectionZeroInit | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 330 of file COFFObjectFile.cpp.
References llvm::object::success.
void COFFObjectFile::moveRelocationNext | ( | DataRefImpl & | Rel | ) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 859 of file COFFObjectFile.cpp.
References llvm::object::DataRefImpl::p.
void COFFObjectFile::moveSectionNext | ( | DataRefImpl & | Sec | ) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 250 of file COFFObjectFile.cpp.
References llvm::object::DataRefImpl::p.
void COFFObjectFile::moveSymbolNext | ( | DataRefImpl & | Symb | ) | const [override, protected, virtual] |
Implements llvm::object::SymbolicFile.
Definition at line 126 of file COFFObjectFile.cpp.
References llvm_unreachable, llvm::object::coff_symbol< SectionNumberType >::NumberOfAuxSymbols, and llvm::object::DataRefImpl::p.
section_iterator COFFObjectFile::section_begin | ( | ) | const [override, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 676 of file COFFObjectFile.cpp.
References llvm::object::DataRefImpl::p, llvm::MipsISD::Ret, and llvm::object::ObjectFile::SectionRef.
section_iterator COFFObjectFile::section_end | ( | ) | const [override, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 682 of file COFFObjectFile.cpp.
References getNumberOfSections(), llvm::object::coff_file_header::isImportLibrary(), llvm::object::DataRefImpl::p, llvm::MipsISD::Ret, and llvm::object::ObjectFile::SectionRef.
Referenced by getSymbolSection().
relocation_iterator COFFObjectFile::section_rel_begin | ( | DataRefImpl | Sec | ) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 359 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::sys::path::begin(), llvm::object::coff_section::hasExtendedRelocations(), llvm::object::coff_section::NumberOfRelocations, llvm::object::DataRefImpl::p, llvm::object::coff_section::PointerToRelocations, llvm::object::ObjectFile::RelocationRef, and llvm::MipsISD::Ret.
relocation_iterator COFFObjectFile::section_rel_end | ( | DataRefImpl | Sec | ) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 391 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::sys::path::begin(), getNumberOfRelocations(), llvm::object::coff_section::NumberOfRelocations, llvm::object::DataRefImpl::p, llvm::object::coff_section::PointerToRelocations, llvm::object::ObjectFile::RelocationRef, and llvm::MipsISD::Ret.
std::error_code COFFObjectFile::sectionContainsSymbol | ( | DataRefImpl | Sec, |
DataRefImpl | Symb, | ||
bool & | Result | ||
) | const [override, protected, virtual] |
Implements llvm::object::ObjectFile.
Definition at line 344 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), and llvm::object::success.
basic_symbol_iterator COFFObjectFile::symbol_begin_impl | ( | ) | const [override, virtual] |
Implements llvm::object::SymbolicFile.
Definition at line 640 of file COFFObjectFile.cpp.
References getSymbolTable(), llvm::object::DataRefImpl::p, llvm::MipsISD::Ret, and llvm::object::ObjectFile::SymbolRef.
basic_symbol_iterator COFFObjectFile::symbol_end_impl | ( | ) | const [override, virtual] |
Implements llvm::object::SymbolicFile.
Definition at line 646 of file COFFObjectFile.cpp.
References llvm::object::DataRefImpl::p, llvm::MipsISD::Ret, and llvm::object::ObjectFile::SymbolRef.
const coff_symbol_type* llvm::object::COFFObjectFile::toSymb | ( | DataRefImpl | Ref | ) | const |
Definition at line 91 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), getNumberOfSymbols(), getPointerToSymbolTable(), llvm::object::DataRefImpl::p, and llvm::report_fatal_error().
friend class ExportDirectoryEntryRef [friend] |
Definition at line 422 of file Object/COFF.h.
Referenced by export_directory_begin(), and export_directory_end().
friend class ImportDirectoryEntryRef [friend] |
Definition at line 421 of file Object/COFF.h.
Referenced by import_directory_begin(), and import_directory_end().