LLVM API Documentation
#include <Binary.h>
Public Member Functions | |
virtual | ~Binary () |
StringRef | getData () const |
StringRef | getFileName () const |
unsigned int | getType () const |
bool | isObject () const |
bool | isArchive () const |
bool | isMachOUniversalBinary () const |
bool | isELF () const |
bool | isMachO () const |
bool | isCOFF () const |
bool | isLittleEndian () const |
Protected Types | |
enum | { ID_Archive, ID_MachOUniversalBinary, ID_StartObjects, ID_COFF, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_EndObjects } |
Protected Member Functions | |
Binary (unsigned int Type, MemoryBuffer *Source) | |
Static Protected Member Functions | |
static unsigned int | getELFType (bool isLE, bool is64Bits) |
static unsigned int | getMachOType (bool isLE, bool is64Bits) |
Protected Attributes | |
MemoryBuffer * | Data |
|
protected |
|
protected |
Definition at line 33 of file Binary.cpp.
|
virtual |
Definition at line 29 of file Binary.cpp.
References Data.
StringRef Binary::getData | ( | ) | const |
Definition at line 37 of file Binary.cpp.
References Data, and llvm::MemoryBuffer::getBuffer().
Referenced by llvm::ObjectImageCommon::getData(), llvm::object::getPtr(), llvm::object::MachOObjectFile::getSectionContents(), llvm::object::MachOObjectFile::getStringTableData(), llvm::object::MachOUniversalBinary::MachOUniversalBinary(), llvm::object::MachOUniversalBinary::ObjectForArch::ObjectForArch(), and llvm::object::MachOObjectFile::ReadULEB128s().
StringRef Binary::getFileName | ( | ) | const |
Definition at line 41 of file Binary.cpp.
References Data, and llvm::MemoryBuffer::getBufferIdentifier().
|
inlinestaticprotected |
Definition at line 66 of file Binary.h.
References ID_MachO32B, ID_MachO32L, ID_MachO64B, and ID_MachO64L.
Referenced by llvm::object::MachOObjectFile::is64Bit().
|
inline |
Definition at line 80 of file Binary.h.
Referenced by llvm::object::ELFObjectFile< ELFT >::classof(), and llvm::object::MachOObjectFile::is64Bit().
|
inline |
Definition at line 87 of file Binary.h.
References ID_Archive.
Referenced by llvm::object::Archive::classof().
|
inline |
Definition at line 103 of file Binary.h.
References ID_COFF.
Referenced by llvm::object::COFFObjectFile::classof().
|
inline |
Definition at line 95 of file Binary.h.
References ID_ELF32L, and ID_ELF64B.
Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().
|
inline |
Definition at line 107 of file Binary.h.
References ID_ELF32B, ID_ELF64B, ID_MachO32B, and ID_MachO64B.
Referenced by llvm::object::MachOObjectFile::getPlainRelocationExternal(), llvm::object::getPlainRelocationLength(), llvm::object::getPlainRelocationPCRel(), llvm::object::MachOObjectFile::getPlainRelocationSymbolNum(), llvm::object::getPlainRelocationType(), llvm::object::getStruct(), and llvm::RuntimeDyldImpl::loadObject().
|
inline |
Definition at line 99 of file Binary.h.
References ID_MachO32L, and ID_MachO64B.
Referenced by llvm::object::MachOObjectFile::classof().
|
inline |
Definition at line 91 of file Binary.h.
References ID_MachOUniversalBinary.
Referenced by llvm::object::MachOUniversalBinary::classof().
|
inline |
Definition at line 83 of file Binary.h.
References ID_EndObjects, and ID_StartObjects.
Referenced by llvm::object::ObjectFile::classof().
|
protected |
Definition at line 35 of file Binary.h.
Referenced by llvm::object::ObjectFile::base(), llvm::object::Archive::begin_children(), llvm::object::COFFObjectFile::COFFObjectFile(), getData(), getFileName(), llvm::object::Archive::Child::getName(), llvm::object::Archive::Child::getNext(), and ~Binary().