LLVM: llvm::object::Binary Class Reference (original) (raw)

#include "[llvm/Object/Binary.h](Binary%5F8h%5Fsource.html)"

Public Member Functions
Binary ()=delete
Binary (const Binary &other)=delete
virtual ~Binary ()
virtual Error initContent ()
StringRef getData () const
StringRef getFileName () const
MemoryBufferRef getMemoryBufferRef () const
unsigned int getType () const
bool isObject () const
bool isSymbolic () const
bool isArchive () const
bool isMachOUniversalBinary () const
bool isTapiUniversal () const
bool isELF () const
bool isMachO () const
bool isCOFF () const
bool isXCOFF () const
bool isWasm () const
bool isOffloadFile () const
bool isCOFFImportFile () const
bool isIR () const
bool isGOFF () const
bool isMinidump () const
bool isTapiFile () const
bool isLittleEndian () const
bool isWinRes () const
bool isDXContainer () const
Triple::ObjectFormatType getTripleObjectFormat () const
Protected Types
enum { ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR, ID_TapiUniversal, ID_TapiFile, ID_Minidump, ID_WinRes, ID_Offload, ID_StartObjects, ID_COFF, ID_XCOFF32, ID_XCOFF64, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_GOFF, ID_Wasm, ID_DXContainer, ID_EndObjects }

Definition at line 33 of file Binary.h.

anonymous enum

Enumerator
ID_Archive
ID_MachOUniversalBinary
ID_COFFImportFile
ID_IR
ID_TapiUniversal
ID_TapiFile
ID_Minidump
ID_WinRes
ID_Offload
ID_StartObjects
ID_COFF
ID_XCOFF32
ID_XCOFF64
ID_ELF32L
ID_ELF32B
ID_ELF64L
ID_ELF64B
ID_MachO32L
ID_MachO32B
ID_MachO64L
ID_MachO64B
ID_GOFF
ID_Wasm
ID_DXContainer
ID_EndObjects

Definition at line 42 of file Binary.h.

Binary() [1/3]

Definition at line 36 of file Binary.cpp.

References Data.

Referenced by llvm::object::Archive::Archive(), Binary(), llvm::object::Archive::classof(), llvm::object::MachOUniversalBinary::classof(), llvm::object::MinidumpFile::classof(), llvm::object::OffloadBinary::classof(), llvm::object::SymbolicFile::classof(), llvm::object::TapiUniversal::classof(), llvm::object::WindowsResource::classof(), llvm::object::MachOUniversalBinary::MachOUniversalBinary(), llvm::object::SymbolicFile::SymbolicFile(), and llvm::object::TapiUniversal::TapiUniversal().

Binary() [2/3]

llvm::object::Binary::Binary ( ) delete

Binary() [3/3]

llvm::object::Binary::Binary ( const Binary & other) delete
Binary::~Binary ( ) virtualdefault

checkOffset()

Definition at line 179 of file Binary.h.

References llvm::errorCodeToError(), Size, llvm::Error::success(), and llvm::object::unexpected_eof.

Referenced by getFirstReloc(), getObject(), llvm::object::getObject(), llvm::object::XCOFFObjectFile::getRawData(), llvm::object::COFFObjectFile::getSectionContents(), llvm::object::ELFObjectFile< ELFT >::getSectionContents(), llvm::object::XCOFFObjectFile::getSectionContents(), and llvm::object::XCOFFObjectFile::getSectionFileOffsetToRawData().

getData()

Definition at line 39 of file Binary.cpp.

References Data.

Referenced by createMemberHeaderParseError(), llvm::object::MinidumpFile::getMemory64List(), llvm::object::MinidumpFile::getRawData(), llvm::object::MinidumpFile::getRawStream(), llvm::object::MachOObjectFile::getSectionContents(), llvm::object::MachOObjectFile::getSectionSize(), llvm::object::MinidumpFile::getString(), llvm::object::MachOObjectFile::getStringTableData(), llvm::object::MachOObjectFile::getSymbolName(), llvm::object::MachOUniversalBinary::MachOUniversalBinary(), llvm::object::DXContainerObjectFile::ObjectFile, llvm::object::MachOObjectFile::ReadULEB128s(), and llvm::object::WasmObjectFile::WasmObjectFile().

getELFType()

getFileName()

getMachOType()

getMemoryBufferRef()

getTripleObjectFormat()

getType()

unsigned int llvm::object::Binary::getType ( ) const inline

initContent()

virtual Error llvm::object::Binary::initContent ( ) inlinevirtual

Reimplemented in ELFObjectFile< ELFT >, llvm::objcopy:🧝:ELFObjectFile< ELFT >, llvm::object::ELFObjectFile< ELFT >, llvm::object::ELFObjectFile< ELF32BE >, llvm::object::ELFObjectFile< ELF32BE >, llvm::object::ELFObjectFile< ELF32BE >, llvm::object::ELFObjectFile< ELF32LE >, llvm::object::ELFObjectFile< ELF32LE >, llvm::object::ELFObjectFile< ELF32LE >, llvm::object::ELFObjectFile< ELF64BE >, llvm::object::ELFObjectFile< ELF64BE >, llvm::object::ELFObjectFile< ELF64BE >, llvm::object::ELFObjectFile< ELF64LE >, llvm::object::ELFObjectFile< ELF64LE >, and llvm::object::ELFObjectFile< ELF64LE >.

Definition at line 99 of file Binary.h.

References llvm::Error::success().

isArchive()

bool llvm::object::Binary::isArchive ( ) const inline

isCOFF()

bool llvm::object::Binary::isCOFF ( ) const inline

isCOFFImportFile()

bool llvm::object::Binary::isCOFFImportFile ( ) const inline

isDXContainer()

bool llvm::object::Binary::isDXContainer ( ) const inline

isELF()

bool llvm::object::Binary::isELF ( ) const inline

isGOFF()

bool llvm::object::Binary::isGOFF ( ) const inline

isIR()

bool llvm::object::Binary::isIR ( ) const inline

isLittleEndian()

bool llvm::object::Binary::isLittleEndian ( ) const inline

Definition at line 157 of file Binary.h.

References ID_ELF32B, ID_ELF64B, ID_MachO32B, ID_MachO64B, ID_XCOFF32, and ID_XCOFF64.

Referenced by extractSections(), llvm::object::MachOObjectFile::getChainedFixupsSegments(), llvm::object::MachOObjectFile::getDyldChainedFixupTargets(), llvm::object::MachOObjectFile::getPlainRelocationExternal(), llvm::object::MachOObjectFile::getPlainRelocationSymbolNum(), and llvm::object::ELFObjectFileBase::setARMSubArch().

isMachO()

bool llvm::object::Binary::isMachO ( ) const inline

isMachOUniversalBinary()

bool llvm::object::Binary::isMachOUniversalBinary ( ) const inline

isMinidump()

bool llvm::object::Binary::isMinidump ( ) const inline

isObject()

bool llvm::object::Binary::isObject ( ) const inline

isOffloadFile()

bool llvm::object::Binary::isOffloadFile ( ) const inline

isSymbolic()

bool llvm::object::Binary::isSymbolic ( ) const inline

isTapiFile()

bool llvm::object::Binary::isTapiFile ( ) const inline

isTapiUniversal()

bool llvm::object::Binary::isTapiUniversal ( ) const inline

isWasm()

bool llvm::object::Binary::isWasm ( ) const inline

isWinRes()

bool llvm::object::Binary::isWinRes ( ) const inline

isXCOFF()

bool llvm::object::Binary::isXCOFF ( ) const inline

Data

Definition at line 38 of file Binary.h.

Referenced by llvm::object::Archive::Archive(), llvm::object::ObjectFile::base(), llvm::object::BigArchive::BigArchive(), Binary(), llvm::object::Archive::child_begin(), llvm::object::MinidumpFile::create(), llvm::object::ObjectFile::createObjectFile(), llvm::object::SymbolicFile::createSymbolicFile(), llvm::object::ELFObjectFile< ELFT >::ELFObjectFile(), llvm::object::COFFImportFile::getCOFFImportHeader(), llvm::object::ELFObjectFileBase::getCrelDecodeProblem(), getData(), llvm::object::COFFImportFile::getExportName(), getFileName(), llvm::object::COFFObjectFile::getHybridObjectView(), llvm::object::XCOFFObjectFile::getImportFileTable(), getMemoryBufferRef(), llvm::object::MinidumpFile::getMemoryInfoList(), llvm::object::XCOFFObjectFile::getRawData(), llvm::object::COFFObjectFile::getRelocations(), llvm::object::COFFObjectFile::getSectionContents(), llvm::object::XCOFFObjectFile::getSectionContents(), llvm::object::XCOFFObjectFile::getSectionFileOffsetToRawData(), llvm::object::GOFFObjectFile::GOFFObjectFile(), llvm::object::Archive::isEmpty(), llvm::object::MachOUniversalBinary::MachOUniversalBinary(), llvm::object::COFFImportFile::printSymbolName(), llvm::object::XCOFFObjectFile::relocations(), llvm::object::COFFObjectFile::section_rel_begin(), llvm::object::COFFObjectFile::section_rel_end(), and llvm::object::OffloadBinary::write().


The documentation for this class was generated from the following files: