LLVM API Documentation
#include <MachOUniversal.h>


Classes | |
| class | object_iterator |
| class | ObjectForArch |
Public Member Functions | |
| MachOUniversalBinary (MemoryBuffer *Source, error_code &ec) | |
| object_iterator | begin_objects () const |
| object_iterator | end_objects () const |
| uint32_t | getNumberOfObjects () const |
| error_code | getObjectForArch (Triple::ArchType Arch, OwningPtr< ObjectFile > &Result) const |
Public Member Functions inherited from llvm::object::Binary | |
| 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 |
Static Public Member Functions | |
| static bool | classof (Binary const *V) |
Additional Inherited Members | |
Protected Types inherited from llvm::object::Binary | |
| 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 inherited from llvm::object::Binary | |
| Binary (unsigned int Type, MemoryBuffer *Source) | |
Static Protected Member Functions inherited from llvm::object::Binary | |
| static unsigned int | getELFType (bool isLE, bool is64Bits) |
| static unsigned int | getMachOType (bool isLE, bool is64Bits) |
Protected Attributes inherited from llvm::object::Binary | |
| MemoryBuffer * | Data |
Definition at line 28 of file MachOUniversal.h.
| MachOUniversalBinary::MachOUniversalBinary | ( | MemoryBuffer * | Source, |
| error_code & | ec | ||
| ) |
Definition at line 95 of file MachOUniversal.cpp.
References llvm::StringRef::begin(), llvm::MemoryBuffer::getBufferSize(), llvm::object::Binary::getData(), H, llvm::object::object_error::invalid_file_type, llvm::MachO::fat_header::magic, llvm::MachO::fat_header::nfat_arch, llvm::object::object_error::parse_failed, llvm::StringRef::size(), and llvm::object::object_error::success.
|
inline |
Definition at line 81 of file MachOUniversal.h.
Referenced by getObjectForArch().
Definition at line 91 of file MachOUniversal.h.
References llvm::object::Binary::isMachOUniversalBinary().
|
inline |
Definition at line 84 of file MachOUniversal.h.
Referenced by getObjectForArch().
|
inline |
Definition at line 88 of file MachOUniversal.h.
Referenced by llvm::object::MachOUniversalBinary::ObjectForArch::ObjectForArch().
| error_code MachOUniversalBinary::getObjectForArch | ( | Triple::ArchType | Arch, |
| OwningPtr< ObjectFile > & | Result | ||
| ) | const |
Definition at line 129 of file MachOUniversal.cpp.
References llvm::object::object_error::arch_not_found, begin_objects(), end_objects(), getCTMForArch(), and I.