LLVM API Documentation

Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
llvm::object::Binary Class Reference

#include <Binary.h>

Inheritance diagram for llvm::object::Binary:
Inheritance graph
[legend]
Collaboration diagram for llvm::object::Binary:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Binary ()
StringRef getData () const
StringRef getFileName () const
unsigned int getType () const
bool isObject () const
bool isArchive () const
bool isELF () const
bool isMachO () const
bool isCOFF () const
bool isLittleEndian () const

Protected Types

enum  {
  ID_Archive, 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

MemoryBufferData

Detailed Description

Definition at line 27 of file Binary.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
ID_Archive 
ID_StartObjects 
ID_COFF 
ID_ELF32L 
ID_ELF32B 
ID_ELF64L 
ID_ELF64B 
ID_MachO32L 
ID_MachO32B 
ID_MachO64L 
ID_MachO64B 
ID_EndObjects 

Definition at line 39 of file Binary.h.


Constructor & Destructor Documentation

Binary::Binary ( unsigned int  Type,
MemoryBuffer Source 
) [protected]

Definition at line 31 of file Binary.cpp.

Binary::~Binary ( ) [virtual]

Definition at line 27 of file Binary.cpp.

References Data.


Member Function Documentation

StringRef Binary::getData ( ) const
static unsigned int llvm::object::Binary::getELFType ( bool  isLE,
bool  is64Bits 
) [inline, static, protected]

Definition at line 58 of file Binary.h.

References ID_ELF32B, ID_ELF32L, ID_ELF64B, and ID_ELF64L.

StringRef Binary::getFileName ( ) const
static unsigned int llvm::object::Binary::getMachOType ( bool  isLE,
bool  is64Bits 
) [inline, static, protected]

Definition at line 65 of file Binary.h.

References ID_MachO32B, ID_MachO32L, ID_MachO64B, and ID_MachO64L.

Referenced by llvm::object::MachOObjectFile::is64Bit().

unsigned int llvm::object::Binary::getType ( ) const [inline]
bool llvm::object::Binary::isArchive ( ) const [inline]

Definition at line 86 of file Binary.h.

References ID_Archive.

Referenced by llvm::object::Archive::classof().

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

Definition at line 98 of file Binary.h.

References ID_COFF.

Referenced by llvm::object::COFFObjectFile::classof().

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

Definition at line 90 of file Binary.h.

References ID_ELF32L, and ID_ELF64B.

Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().

bool llvm::object::Binary::isLittleEndian ( ) const [inline]
bool llvm::object::Binary::isMachO ( ) const [inline]

Definition at line 94 of file Binary.h.

References ID_MachO32L, and ID_MachO64B.

Referenced by llvm::object::MachOObjectFile::classof().

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

Definition at line 82 of file Binary.h.

References ID_EndObjects, and ID_StartObjects.

Referenced by llvm::object::ObjectFile::classof().


Member Data Documentation


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