LLVM API Documentation
#include <MachOUniversal.h>
Public Member Functions | |
ObjectForArch (const MachOUniversalBinary *Parent, uint32_t Index) | |
void | clear () |
bool | operator== (const ObjectForArch &Other) const |
ObjectForArch | getNext () const |
uint32_t | getCPUType () const |
std::string | getArchTypeName () const |
ErrorOr< std::unique_ptr < ObjectFile > > | getAsObjectFile () const |
std::error_code | getAsArchive (std::unique_ptr< Archive > &Result) const |
Definition at line 35 of file MachOUniversal.h.
MachOUniversalBinary::ObjectForArch::ObjectForArch | ( | const MachOUniversalBinary * | Parent, |
uint32_t | Index | ||
) |
Definition at line 53 of file MachOUniversal.cpp.
References llvm::StringRef::begin(), clear(), llvm::object::Binary::getData(), llvm::object::MachOUniversalBinary::getNumberOfObjects(), llvm::MachO::fat_arch::offset, llvm::StringRef::size(), and llvm::MachO::fat_arch::size.
Referenced by getNext().
void llvm::object::MachOUniversalBinary::ObjectForArch::clear | ( | ) | [inline] |
Definition at line 45 of file MachOUniversal.h.
Referenced by ObjectForArch().
std::string llvm::object::MachOUniversalBinary::ObjectForArch::getArchTypeName | ( | ) | const [inline] |
Definition at line 56 of file MachOUniversal.h.
References llvm::MachO::fat_arch::cpusubtype, llvm::MachO::fat_arch::cputype, llvm::object::MachOObjectFile::getArch(), and llvm::Triple::getArchName().
std::error_code MachOUniversalBinary::ObjectForArch::getAsArchive | ( | std::unique_ptr< Archive > & | Result | ) | const |
Definition at line 82 of file MachOUniversal.cpp.
References llvm::object::MachOUniversalBinary::create(), llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::object::parse_failed, llvm::StringRef::substr(), and llvm::object::success.
ErrorOr< std::unique_ptr< ObjectFile > > MachOUniversalBinary::ObjectForArch::getAsObjectFile | ( | ) | const |
Definition at line 71 of file MachOUniversal.cpp.
References llvm::object::ObjectFile::createMachOObjectFile(), llvm::object::parse_failed, and llvm::StringRef::substr().
uint32_t llvm::object::MachOUniversalBinary::ObjectForArch::getCPUType | ( | ) | const [inline] |
Definition at line 55 of file MachOUniversal.h.
References llvm::MachO::fat_arch::cputype.
ObjectForArch llvm::object::MachOUniversalBinary::ObjectForArch::getNext | ( | ) | const [inline] |
Definition at line 54 of file MachOUniversal.h.
References ObjectForArch().
Referenced by llvm::object::MachOUniversalBinary::object_iterator::operator++().
bool llvm::object::MachOUniversalBinary::ObjectForArch::operator== | ( | const ObjectForArch & | Other | ) | const [inline] |
Definition at line 50 of file MachOUniversal.h.