LLVM API Documentation
#include <MachOUniversal.h>
Classes | |
class | object_iterator |
class | ObjectForArch |
Public Member Functions | |
MachOUniversalBinary (MemoryBufferRef Souce, std::error_code &EC) | |
object_iterator | begin_objects () const |
object_iterator | end_objects () const |
uint32_t | getNumberOfObjects () const |
ErrorOr< std::unique_ptr < ObjectFile > > | getObjectForArch (Triple::ArchType Arch) const |
Static Public Member Functions | |
static ErrorOr < std::unique_ptr < MachOUniversalBinary > > | create (MemoryBufferRef Source) |
static bool | classof (Binary const *V) |
Definition at line 30 of file MachOUniversal.h.
MachOUniversalBinary::MachOUniversalBinary | ( | MemoryBufferRef | Souce, |
std::error_code & | EC | ||
) |
Definition at line 110 of file MachOUniversal.cpp.
References llvm::StringRef::begin(), llvm::object::Binary::Data, llvm::MachO::FAT_MAGIC, llvm::MemoryBufferRef::getBufferSize(), llvm::object::Binary::getData(), H, llvm::object::invalid_file_type, llvm::MachO::fat_header::magic, llvm::MachO::fat_header::nfat_arch, llvm::object::parse_failed, llvm::StringRef::size(), and llvm::object::success.
Referenced by create().
object_iterator llvm::object::MachOUniversalBinary::begin_objects | ( | ) | const [inline] |
Definition at line 91 of file MachOUniversal.h.
Referenced by getObjectForArch().
static bool llvm::object::MachOUniversalBinary::classof | ( | Binary const * | V | ) | [inline, static] |
Definition at line 101 of file MachOUniversal.h.
References llvm::object::Binary::isMachOUniversalBinary().
ErrorOr< std::unique_ptr< MachOUniversalBinary > > MachOUniversalBinary::create | ( | MemoryBufferRef | Source | ) | [static] |
Definition at line 101 of file MachOUniversal.cpp.
References MachOUniversalBinary(), and llvm::MipsISD::Ret.
Referenced by llvm::object::createBinary(), and llvm::object::MachOUniversalBinary::ObjectForArch::getAsArchive().
object_iterator llvm::object::MachOUniversalBinary::end_objects | ( | ) | const [inline] |
Definition at line 94 of file MachOUniversal.h.
Referenced by getObjectForArch().
uint32_t llvm::object::MachOUniversalBinary::getNumberOfObjects | ( | ) | const [inline] |
Definition at line 98 of file MachOUniversal.h.
Referenced by llvm::object::MachOUniversalBinary::ObjectForArch::ObjectForArch().
ErrorOr< std::unique_ptr< ObjectFile > > MachOUniversalBinary::getObjectForArch | ( | Triple::ArchType | Arch | ) | const |
Definition at line 143 of file MachOUniversal.cpp.
References llvm::object::arch_not_found, begin_objects(), end_objects(), getCTMForArch(), and I.