LLVM 20.0.0git
|
#include "llvm/Object/COFF.h"
Friends | |
class | ImportDirectoryEntryRef |
class | ExportDirectoryEntryRef |
base_reloc_iterator COFFObjectFile::base_reloc_begin | ( | ) | const |
Definition at line 1096 of file COFFObjectFile.cpp.
Referenced by base_relocs().
base_reloc_iterator COFFObjectFile::base_reloc_end | ( | ) | const |
Definition at line 1100 of file COFFObjectFile.cpp.
Referenced by base_relocs().
iterator_range< base_reloc_iterator > COFFObjectFile::base_relocs | ( | ) | const |
Definition at line 1166 of file COFFObjectFile.cpp.
References base_reloc_begin(), base_reloc_end(), and llvm::make_range().
|
static |
Definition at line 861 of file COFFObjectFile.cpp.
Referenced by llvm::object::ObjectFile::createCOFFObjectFile(), and getCOFFFileMachine().
|
inline |
Definition at line 1113 of file COFF.h.
References debug_directory_begin(), debug_directory_end(), and llvm::make_range().
Referenced by getDebugPDBInfo().
|
inline |
Definition at line 1100 of file COFF.h.
Referenced by debug_directories().
|
inline |
Definition at line 1103 of file COFF.h.
Referenced by debug_directories().
iterator_range< delay_import_directory_iterator > COFFObjectFile::delay_import_directories | ( | ) | const |
Definition at line 1156 of file COFFObjectFile.cpp.
References delay_import_directory_begin(), delay_import_directory_end(), and llvm::make_range().
delay_import_directory_iterator COFFObjectFile::delay_import_directory_begin | ( | ) | const |
Definition at line 1057 of file COFFObjectFile.cpp.
Referenced by delay_import_directories().
delay_import_directory_iterator COFFObjectFile::delay_import_directory_end | ( | ) | const |
Definition at line 1063 of file COFFObjectFile.cpp.
Referenced by delay_import_directories().
dynamic_reloc_iterator COFFObjectFile::dynamic_reloc_begin | ( | ) | const |
Definition at line 1104 of file COFFObjectFile.cpp.
Referenced by dynamic_relocs().
dynamic_reloc_iterator COFFObjectFile::dynamic_reloc_end | ( | ) | const |
Definition at line 1109 of file COFFObjectFile.cpp.
References llvm::object::coff_dynamic_reloc_table::Size.
Referenced by dynamic_relocs().
iterator_range< dynamic_reloc_iterator > COFFObjectFile::dynamic_relocs | ( | ) | const |
Definition at line 1170 of file COFFObjectFile.cpp.
References dynamic_reloc_begin(), dynamic_reloc_end(), and llvm::make_range().
Referenced by getHybridObjectView().
iterator_range< export_directory_iterator > COFFObjectFile::export_directories | ( | ) | const |
Definition at line 1162 of file COFFObjectFile.cpp.
References export_directory_begin(), export_directory_end(), and llvm::make_range().
export_directory_iterator COFFObjectFile::export_directory_begin | ( | ) | const |
Definition at line 1069 of file COFFObjectFile.cpp.
References ExportDirectoryEntryRef.
Referenced by export_directories().
export_directory_iterator COFFObjectFile::export_directory_end | ( | ) | const |
Definition at line 1074 of file COFFObjectFile.cpp.
References llvm::object::export_directory_table_entry::AddressTableEntries, ExportDirectoryEntryRef, and llvm::Ref.
Referenced by export_directories().
|
overridevirtual |
Implements llvm::object::ObjectFile.
Definition at line 1140 of file COFFObjectFile.cpp.
References getMachine(), and llvm::getMachineArchType().
Referenced by getBytesInAddress(), llvm::object::ResourceSectionRef::getContents(), and getRelocationTypeName().
|
inline |
Definition at line 1151 of file COFF.h.
References E, getSymbol(), llvm::Error::success(), and llvm::Expected< T >::takeError().
|
overridevirtual |
The number of bytes used to represent an address in this object file format.
Implements llvm::object::ObjectFile.
Definition at line 1117 of file COFFObjectFile.cpp.
References llvm::Triple::aarch64, getArch(), and llvm::Triple::x86_64.
|
inline |
Definition at line 960 of file COFF.h.
References llvm::object::coff_file_header::Characteristics, llvm::object::coff_file_header::isImportLibrary(), and llvm_unreachable.
|
inline |
|
inline |
Definition at line 1131 of file COFF.h.
Referenced by llvm::objcopy::coff::COFFReader::create().
|
inline |
Definition at line 1130 of file COFF.h.
Referenced by llvm::objcopy::coff::COFFReader::create().
const coff_relocation * COFFObjectFile::getCOFFRelocation | ( | const RelocationRef & | Reloc | ) | const |
Definition at line 1365 of file COFFObjectFile.cpp.
References llvm::object::RelocationRef::getRawDataRefImpl().
const coff_section * COFFObjectFile::getCOFFSection | ( | const SectionRef & | Section | ) | const |
Definition at line 1348 of file COFFObjectFile.cpp.
Referenced by llvm::jitlink::COFFLinkGraphBuilder::forEachRelocation(), llvm::RuntimeDyldCOFFThumb::getJITSymbolFlags(), getRvaAndSizeAsBytes(), getRvaPtr(), llvm::object::ResourceSectionRef::load(), llvm::logicalview::LVSymbolVisitorDelegate::LVSymbolVisitorDelegate(), and llvm::logicalview::LVBinaryReader::mapVirtualAddress().
COFFSymbolRef COFFObjectFile::getCOFFSymbol | ( | const DataRefImpl & | Ref | ) | const |
Definition at line 1352 of file COFFObjectFile.cpp.
References llvm_unreachable, and llvm::Ref.
Referenced by llvm::orc::getCOFFObjectFileSymbolInfo(), getCOFFSymbol(), getCommonSymbolSizeImpl(), getSymbolAddress(), getSymbolAlignment(), getSymbolFlags(), getSymbolName(), getSymbolSection(), getSymbolSectionID(), getSymbolType(), and getSymbolValueImpl().
COFFSymbolRef COFFObjectFile::getCOFFSymbol | ( | const SymbolRef & | Symbol | ) | const |
Definition at line 1360 of file COFFObjectFile.cpp.
References getCOFFSymbol().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 240 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getValue(), and llvm::Ref.
const data_directory * COFFObjectFile::getDataDirectory | ( | uint32_t | index | ) | const |
Definition at line 1174 of file COFFObjectFile.cpp.
References assert(), llvm::object::pe32_header::NumberOfRvaAndSize, and llvm::object::pe32plus_header::NumberOfRvaAndSize.
Referenced by llvm::object::ExportDirectoryEntryRef::isForwarder().
Error COFFObjectFile::getDebugPDBInfo | ( | const codeview::DebugInfo *& | Info, |
StringRef & | PDBFileName | ||
) | const |
Get PDB information from an executable.
If the information is not present, Info will be set to nullptr and PDBFileName will be empty. An error is returned only on corrupt object files. Convenience accessor that can be used if the debug directory is not already handy.
Definition at line 564 of file COFFObjectFile.cpp.
References D, debug_directories(), getDebugPDBInfo(), llvm::COFF::IMAGE_DEBUG_TYPE_CODEVIEW, and llvm::Error::success().
Error COFFObjectFile::getDebugPDBInfo | ( | const debug_directory * | DebugDir, |
const codeview::DebugInfo *& | Info, | ||
StringRef & | PDBFileName | ||
) | const |
Get PDB information out of a codeview debug directory entry.
Definition at line 545 of file COFFObjectFile.cpp.
References llvm::object::debug_directory::AddressOfRawData, llvm::createStringError(), llvm::ArrayRef< T >::data(), llvm::ArrayRef< T >::drop_front(), getRvaAndSizeAsBytes(), llvm::object::parse_failed, llvm::ArrayRef< T >::size(), llvm::object::debug_directory::SizeOfData, llvm::StringRef::split(), and llvm::Error::success().
Referenced by getDebugPDBInfo(), and getPdbPathFromExe().
|
inline |
Definition at line 1124 of file COFF.h.
References llvm::object::ObjectFile::base().
Referenced by getSectionSize().
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements llvm::object::ObjectFile.
|
overridevirtual |
Implements llvm::object::ObjectFile.
Definition at line 1121 of file COFFObjectFile.cpp.
References getMachine(), llvm::COFF::IMAGE_FILE_MACHINE_AMD64, llvm::COFF::IMAGE_FILE_MACHINE_ARM64, llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC, llvm::COFF::IMAGE_FILE_MACHINE_ARM64X, llvm::COFF::IMAGE_FILE_MACHINE_ARMNT, and llvm::COFF::IMAGE_FILE_MACHINE_I386.
Definition at line 534 of file COFFObjectFile.cpp.
References getRvaPtr(), Name, Ptr, and llvm::Error::success().
std::unique_ptr< MemoryBuffer > COFFObjectFile::getHybridObjectView | ( | ) | const |
Definition at line 1492 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::cantFail(), llvm::object::Binary::Data, dynamic_relocs(), llvm::MemoryBufferRef::getBufferSize(), llvm::MemoryBufferRef::getBufferStart(), getMachine(), llvm::WritableMemoryBuffer::getNewUninitMemBuffer(), getRvaPtr(), llvm::COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_DELTA, llvm::COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_VALUE, llvm::COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_ZEROFILL, llvm::COFF::IMAGE_DYNAMIC_RELOCATION_ARM64X, llvm::COFF::IMAGE_FILE_MACHINE_ARM64X, and Ptr.
uint64_t COFFObjectFile::getImageBase | ( | ) | const |
Definition at line 454 of file COFFObjectFile.cpp.
References llvm::object::pe32_header::ImageBase, and llvm::object::pe32plus_header::ImageBase.
Referenced by llvm::object::ResourceSectionRef::getContents(), getSectionAddress(), getSymbolAddress(), getVaPtr(), and llvm::logicalview::LVBinaryReader::mapVirtualAddress().
|
inline |
|
inline |
|
inline |
Definition at line 933 of file COFF.h.
References llvm::COFF::IMAGE_FILE_MACHINE_AMD64, llvm::COFF::IMAGE_FILE_MACHINE_ARM64, llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC, llvm::COFF::IMAGE_FILE_MACHINE_ARM64X, llvm_unreachable, llvm::object::coff_file_header::Machine, and llvm::object::coff_bigobj_file_header::Machine.
Referenced by getArch(), getFileFormatName(), and getHybridObjectView().
|
inline |
Definition at line 978 of file COFF.h.
References llvm::object::coff_file_header::isImportLibrary(), llvm_unreachable, llvm::object::coff_file_header::NumberOfSections, and llvm::object::coff_bigobj_file_header::NumberOfSections.
Referenced by llvm::orc::getCOFFObjectFileSymbolInfo(), getSection(), and section_end().
|
inline |
Definition at line 1003 of file COFF.h.
References getRawNumberOfSymbols().
Referenced by getRelocationSymbol(), getSymbol(), getSymbolAuxData(), and getSymbolIndex().
|
inline |
|
inline |
|
inline |
Definition at line 986 of file COFF.h.
References llvm::object::coff_file_header::isImportLibrary(), llvm_unreachable, llvm::object::coff_file_header::PointerToSymbolTable, and llvm::object::coff_bigobj_file_header::PointerToSymbolTable.
Referenced by getSymbolAuxData().
|
inline |
Definition at line 995 of file COFF.h.
References llvm::object::coff_file_header::isImportLibrary(), llvm_unreachable, llvm::object::coff_file_header::NumberOfSymbols, and llvm::object::coff_bigobj_file_header::NumberOfSymbols.
Referenced by getNumberOfSymbols().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 1323 of file COFFObjectFile.cpp.
ArrayRef< coff_relocation > COFFObjectFile::getRelocations | ( | const coff_section * | Sec | ) | const |
Definition at line 1370 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::object::Binary::Data, getFirstReloc(), and getNumberOfRelocations().
Referenced by llvm::object::ResourceSectionRef::load().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 1328 of file COFFObjectFile.cpp.
References getNumberOfSymbols(), llvm_unreachable, llvm::Ref, symbol_end(), and llvm::object::ObjectFile::SymbolRef.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 1342 of file COFFObjectFile.cpp.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 1475 of file COFFObjectFile.cpp.
References llvm::StringRef::begin(), llvm::StringRef::end(), getRelocationTypeName(), and llvm::object::coff_relocation::Type.
Definition at line 1379 of file COFFObjectFile.cpp.
References llvm::Triple::aarch64, getArch(), LLVM_COFF_SWITCH_RELOC_TYPE_NAME, llvm::Triple::thumb, llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by getRelocationTypeName().
Error COFFObjectFile::getRvaAndSizeAsBytes | ( | uint32_t | RVA, |
uint32_t | Size, | ||
ArrayRef< uint8_t > & | Contents, | ||
const char * | ErrorContext = nullptr |
||
) | const |
Given an RVA base and size, returns a valid array of bytes or an error code if the RVA and size is not contained completely within a valid section.
Definition at line 506 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::createStringError(), getCOFFSection(), llvm::object::parse_failed, llvm::object::ObjectFile::sections(), Size, and llvm::Error::success().
Referenced by getDebugPDBInfo().
Error COFFObjectFile::getRvaPtr | ( | uint32_t | Rva, |
uintptr_t & | Res, | ||
const char * | ErrorContext = nullptr |
||
) | const |
Definition at line 472 of file COFFObjectFile.cpp.
References Addr, llvm::object::ObjectFile::base(), llvm::createStringError(), getCOFFSection(), llvm::Offset, llvm::object::parse_failed, llvm::object::ObjectFile::sections(), and llvm::Error::success().
Referenced by llvm::object::ExportDirectoryEntryRef::getDllName(), llvm::object::ExportDirectoryEntryRef::getExportRVA(), llvm::object::ExportDirectoryEntryRef::getForwardTo(), getHintName(), getHybridObjectView(), llvm::object::DelayImportDirectoryEntryRef::getImportAddress(), llvm::object::ImportDirectoryEntryRef::getName(), llvm::object::DelayImportDirectoryEntryRef::getName(), llvm::object::ImportedSymbolRef::getOrdinal(), llvm::object::ExportDirectoryEntryRef::getSymbolName(), llvm::object::ImportedSymbolRef::getSymbolName(), and getVaPtr().
Expected< const coff_section * > COFFObjectFile::getSection | ( | int32_t | index | ) | const |
Definition at line 1185 of file COFFObjectFile.cpp.
References llvm::createStringError(), getNumberOfSections(), llvm::COFF::isReservedSectionNumber(), and llvm::object::parse_failed.
Referenced by llvm::orc::getCOFFObjectFileSymbolInfo(), llvm::object::ResourceSectionRef::getContents(), getSymbolAddress(), and getSymbolSection().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 274 of file COFFObjectFile.cpp.
References getImageBase(), llvm::Ref, and llvm::object::coff_section::VirtualAddress.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 301 of file COFFObjectFile.cpp.
References llvm::object::coff_section::getAlignment(), and llvm::Ref.
Error COFFObjectFile::getSectionContents | ( | const coff_section * | Sec, |
ArrayRef< uint8_t > & | Res | ||
) | const |
Definition at line 1296 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::object::Binary::checkOffset(), llvm::object::Binary::Data, getSectionSize(), llvm::object::coff_section::PointerToRawData, and llvm::Error::success().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 293 of file COFFObjectFile.cpp.
References getSectionContents(), and llvm::Ref.
Referenced by llvm::object::ResourceSectionRef::getContents(), and getSectionContents().
unsigned COFFObjectFile::getSectionID | ( | SectionRef | Sec | ) | const |
Definition at line 341 of file COFFObjectFile.cpp.
References assert(), llvm::object::SectionRef::getRawDataRefImpl(), llvm::Offset, and llvm::object::DataRefImpl::p.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 284 of file COFFObjectFile.cpp.
Expected< StringRef > COFFObjectFile::getSectionName | ( | const coff_section * | Sec | ) | const |
Definition at line 1259 of file COFFObjectFile.cpp.
References llvm::createStringError(), decodeBase64StringEntry(), llvm::object::coff_section::Name, Name, llvm::COFF::NameSize, llvm::Offset, llvm::object::parse_failed, and llvm::StringRef::split().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 269 of file COFFObjectFile.cpp.
References getSectionName(), and llvm::Ref.
Referenced by llvm::jitlink::COFFLinkGraphBuilder::forEachRelocation(), getSectionName(), and isDebugSection().
uint64_t COFFObjectFile::getSectionSize | ( | const coff_section * | Sec | ) | const |
Definition at line 1280 of file COFFObjectFile.cpp.
References getDOSHeader(), llvm::object::coff_section::SizeOfRawData, and llvm::object::coff_section::VirtualSize.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 288 of file COFFObjectFile.cpp.
References getSectionSize(), and llvm::Ref.
Referenced by getSectionContents(), and getSectionSize().
|
inline |
Definition at line 950 of file COFF.h.
References llvm::object::coff_file_header::isImportLibrary(), llvm_unreachable, and llvm::object::coff_file_header::SizeOfOptionalHeader.
Reimplemented from llvm::object::ObjectFile.
Definition at line 1144 of file COFFObjectFile.cpp.
References llvm::object::pe32_header::AddressOfEntryPoint.
|
inline |
|
inline |
Definition at line 1140 of file COFF.h.
References llvm::errorCodeToError(), getNumberOfSymbols(), and llvm::object::parse_failed.
Referenced by getAuxSymbol(), and llvm::object::ResourceSectionRef::getContents().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 165 of file COFFObjectFile.cpp.
References llvm::cantFail(), getCOFFSymbol(), getImageBase(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::ObjectFile::getSymbolValue(), llvm::object::COFFSymbolRef::isAnyUndefined(), llvm::object::COFFSymbolRef::isCommon(), llvm::COFF::isReservedSectionNumber(), and llvm::Ref.
|
overrideprotectedvirtual |
Reimplemented from llvm::object::ObjectFile.
Definition at line 158 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getValue(), llvm::PowerOf2Ceil(), and llvm::Ref.
ArrayRef< uint8_t > COFFObjectFile::getSymbolAuxData | ( | COFFSymbolRef | Symbol | ) | const |
Definition at line 1226 of file COFFObjectFile.cpp.
References assert(), llvm::object::ObjectFile::base(), getNumberOfSymbols(), getPointerToSymbolTable(), getSymbolTableEntrySize(), llvm::Offset, and llvm::report_fatal_error().
|
overrideprotectedvirtual |
Implements llvm::object::SymbolicFile.
Definition at line 209 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::object::COFFSymbolRef::getWeakExternal(), llvm::COFF::IMAGE_SYM_ABSOLUTE, llvm::COFF::IMAGE_WEAK_EXTERN_SEARCH_ALIAS, llvm::object::COFFSymbolRef::isCommon(), llvm::object::COFFSymbolRef::isExternal(), llvm::object::COFFSymbolRef::isFileRecord(), llvm::object::COFFSymbolRef::isSectionDefinition(), llvm::object::COFFSymbolRef::isUndefined(), llvm::object::COFFSymbolRef::isWeakExternal(), llvm::Ref, llvm::object::BasicSymbolRef::SF_Absolute, llvm::object::BasicSymbolRef::SF_Common, llvm::object::BasicSymbolRef::SF_FormatSpecific, llvm::object::BasicSymbolRef::SF_Global, llvm::object::BasicSymbolRef::SF_None, llvm::object::BasicSymbolRef::SF_Undefined, and llvm::object::BasicSymbolRef::SF_Weak.
uint32_t COFFObjectFile::getSymbolIndex | ( | COFFSymbolRef | Symbol | ) | const |
Definition at line 1248 of file COFFObjectFile.cpp.
References assert(), getNumberOfSymbols(), getSymbolTable(), getSymbolTableEntrySize(), and llvm::Offset.
Expected< StringRef > COFFObjectFile::getSymbolName | ( | COFFSymbolRef | Symbol | ) | const |
Definition at line 1207 of file COFFObjectFile.cpp.
References getSymbolName().
Expected< StringRef > COFFObjectFile::getSymbolName | ( | const coff_symbol_generic * | Symbol | ) | const |
Definition at line 1212 of file COFFObjectFile.cpp.
References llvm::COFF::NameSize.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 150 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSymbolName(), and llvm::Ref.
Referenced by getSymbolName().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 246 of file COFFObjectFile.cpp.
References getCOFFSymbol(), getSection(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::COFF::isReservedSectionNumber(), llvm::Ref, section_end(), llvm::object::ObjectFile::SectionRef, and llvm::Expected< T >::takeError().
Definition at line 258 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getSectionNumber(), and Sym.
|
inline |
Definition at line 925 of file COFF.h.
Referenced by getSymbolIndex(), and symbol_begin().
|
inline |
Definition at line 1166 of file COFF.h.
References llvm_unreachable.
Referenced by getSymbolAuxData(), and getSymbolIndex().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 186 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getComplexType(), llvm::object::COFFSymbolRef::getSectionNumber(), llvm::COFF::IMAGE_SYM_DEBUG, llvm::COFF::IMAGE_SYM_DTYPE_FUNCTION, llvm::object::COFFSymbolRef::isAnyUndefined(), llvm::object::COFFSymbolRef::isCommon(), llvm::object::COFFSymbolRef::isFileRecord(), llvm::COFF::isReservedSectionNumber(), llvm::object::COFFSymbolRef::isSectionDefinition(), llvm::Ref, llvm::object::SymbolRef::ST_Data, llvm::object::SymbolRef::ST_Debug, llvm::object::SymbolRef::ST_File, llvm::object::SymbolRef::ST_Function, llvm::object::SymbolRef::ST_Other, and llvm::object::SymbolRef::ST_Unknown.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 154 of file COFFObjectFile.cpp.
References getCOFFSymbol(), llvm::object::COFFSymbolRef::getValue(), and llvm::Ref.
|
inline |
Definition at line 970 of file COFF.h.
References llvm_unreachable, llvm::object::coff_file_header::TimeDateStamp, and llvm::object::coff_bigobj_file_header::TimeDateStamp.
|
inline |
|
inline |
Definition at line 464 of file COFFObjectFile.cpp.
References Addr, assert(), getImageBase(), and getRvaPtr().
iterator_range< import_directory_iterator > COFFObjectFile::import_directories | ( | ) | const |
Definition at line 1151 of file COFFObjectFile.cpp.
References import_directory_begin(), import_directory_end(), and llvm::make_range().
import_directory_iterator COFFObjectFile::import_directory_begin | ( | ) | const |
Definition at line 1042 of file COFFObjectFile.cpp.
References import_directory_end(), ImportDirectoryEntryRef, and llvm::object::coff_import_directory_table_entry::isNull().
Referenced by import_directories().
import_directory_iterator COFFObjectFile::import_directory_end | ( | ) | const |
Definition at line 1051 of file COFFObjectFile.cpp.
References ImportDirectoryEntryRef.
Referenced by import_directories(), and import_directory_begin().
|
inline |
Definition at line 1209 of file COFF.h.
Referenced by llvm::object::DelayImportDirectoryEntryRef::getImportAddress(), getLoadConfig32(), and getLoadConfig64().
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
|
overrideprotectedvirtual |
Reimplemented from llvm::object::ObjectFile.
Definition at line 330 of file COFFObjectFile.cpp.
References llvm::consumeError(), llvm::Expected< T >::get(), getSectionName(), llvm::Ref, and llvm::Expected< T >::takeError().
|
overridevirtual |
True if this is a relocatable object (.o/.obj).
Implements llvm::object::ObjectFile.
Definition at line 1482 of file COFFObjectFile.cpp.
Referenced by llvm::object::ResourceSectionRef::getContents().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 320 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_WRITE, and llvm::Ref.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 306 of file COFFObjectFile.cpp.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 315 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, and llvm::Ref.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 310 of file COFFObjectFile.cpp.
References llvm::object::coff_section::Characteristics, llvm::COFF::IMAGE_SCN_CNT_CODE, and llvm::Ref.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 348 of file COFFObjectFile.cpp.
References llvm::object::coff_section::PointerToRawData, and llvm::Ref.
Maps a debug section name to a standard DWARF section name.
Reimplemented from llvm::object::ObjectFile.
Definition at line 1486 of file COFFObjectFile.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), and Name.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 1318 of file COFFObjectFile.cpp.
References llvm::object::DataRefImpl::p.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 263 of file COFFObjectFile.cpp.
References llvm::Ref.
|
overrideprotectedvirtual |
Implements llvm::object::SymbolicFile.
Definition at line 135 of file COFFObjectFile.cpp.
References End, llvm_unreachable, llvm::object::coff_symbol< SectionNumberType >::NumberOfAuxSymbols, and llvm::Ref.
|
overridevirtual |
Implements llvm::object::ObjectFile.
Definition at line 1082 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::SectionRef.
|
overridevirtual |
Implements llvm::object::ObjectFile.
Definition at line 1088 of file COFFObjectFile.cpp.
References getNumberOfSections(), llvm::object::coff_file_header::isImportLibrary(), and llvm::object::ObjectFile::SectionRef.
Referenced by getSymbolSection().
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 395 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::object::Binary::Data, getFirstReloc(), llvm::Ref, llvm::object::ObjectFile::RelocationRef, llvm::report_fatal_error(), and llvm::object::coff_section::VirtualAddress.
|
overrideprotectedvirtual |
Implements llvm::object::ObjectFile.
Definition at line 405 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::base(), llvm::object::Binary::Data, getFirstReloc(), getNumberOfRelocations(), I, llvm::Ref, and llvm::object::ObjectFile::RelocationRef.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 1029 of file COFFObjectFile.cpp.
References getSymbolTable(), and llvm::object::ObjectFile::SymbolRef.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 1035 of file COFFObjectFile.cpp.
References llvm::object::ObjectFile::SymbolRef.
Referenced by getRelocationSymbol().
|
friend |
Definition at line 875 of file COFF.h.
Referenced by export_directory_begin(), and export_directory_end().
|
friend |
Definition at line 874 of file COFF.h.
Referenced by import_directory_begin(), and import_directory_end().