LLVM 20.0.0git
|
#include "llvm/Object/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 |
uint32_t | getCPUSubType () const |
uint64_t | getOffset () const |
uint64_t | getSize () const |
uint32_t | getAlign () const |
uint32_t | getReserved () const |
Triple | getTriple () const |
std::string | getArchFlagName () const |
Expected< std::unique_ptr< MachOObjectFile > > | getAsObjectFile () const |
Expected< std::unique_ptr< IRObjectFile > > | getAsIRObject (LLVMContext &Ctx) const |
Expected< std::unique_ptr< Archive > > | getAsArchive () const |
Definition at line 38 of file MachOUniversal.h.
MachOUniversalBinary::ObjectForArch::ObjectForArch | ( | const MachOUniversalBinary * | Parent, |
uint32_t | Index | ||
) |
Definition at line 41 of file MachOUniversal.cpp.
References llvm::StringRef::begin(), clear(), llvm::MachO::FAT_MAGIC, llvm::object::Binary::getData(), llvm::object::MachOUniversalBinary::getMagic(), and llvm::object::MachOUniversalBinary::getNumberOfObjects().
|
inline |
Definition at line 49 of file MachOUniversal.h.
Referenced by ObjectForArch().
|
inline |
Definition at line 83 of file MachOUniversal.h.
References llvm::MachO::fat_arch_64::align, llvm::MachO::FAT_MAGIC, and llvm::object::MachOUniversalBinary::getMagic().
|
inline |
Definition at line 98 of file MachOUniversal.h.
References llvm::object::MachOObjectFile::getArchTriple(), getCPUSubType(), and getCPUType().
Definition at line 103 of file MachOUniversal.cpp.
References llvm::object::Archive::create(), llvm::MachO::FAT_MAGIC, llvm::report_fatal_error(), and llvm::StringRef::substr().
Expected< std::unique_ptr< IRObjectFile > > MachOUniversalBinary::ObjectForArch::getAsIRObject | ( | LLVMContext & | Ctx | ) | const |
Definition at line 84 of file MachOUniversal.cpp.
References llvm::object::IRObjectFile::create(), llvm::MachO::FAT_MAGIC, llvm::report_fatal_error(), and llvm::StringRef::substr().
Expected< std::unique_ptr< MachOObjectFile > > MachOUniversalBinary::ObjectForArch::getAsObjectFile | ( | ) | const |
Definition at line 63 of file MachOUniversal.cpp.
References llvm::object::ObjectFile::createMachOObjectFile(), llvm::MachO::FAT_MAGIC, llvm::report_fatal_error(), and llvm::StringRef::substr().
|
inline |
Definition at line 65 of file MachOUniversal.h.
References llvm::MachO::fat_arch_64::cpusubtype, llvm::MachO::FAT_MAGIC, and llvm::object::MachOUniversalBinary::getMagic().
Referenced by getArchFlagName(), and getTriple().
|
inline |
Definition at line 59 of file MachOUniversal.h.
References llvm::MachO::fat_arch_64::cputype, llvm::MachO::FAT_MAGIC, and llvm::object::MachOUniversalBinary::getMagic().
Referenced by getArchFlagName(), and getTriple().
|
inline |
Definition at line 58 of file MachOUniversal.h.
Referenced by llvm::object::MachOUniversalBinary::object_iterator::operator++().
|
inline |
Definition at line 71 of file MachOUniversal.h.
References llvm::MachO::FAT_MAGIC, llvm::object::MachOUniversalBinary::getMagic(), and llvm::MachO::fat_arch_64::offset.
|
inline |
Definition at line 89 of file MachOUniversal.h.
References llvm::MachO::FAT_MAGIC, llvm::object::MachOUniversalBinary::getMagic(), and llvm::MachO::fat_arch_64::reserved.
|
inline |
Definition at line 77 of file MachOUniversal.h.
References llvm::MachO::FAT_MAGIC, llvm::object::MachOUniversalBinary::getMagic(), and llvm::MachO::fat_arch_64::size.
|
inline |
Definition at line 95 of file MachOUniversal.h.
References llvm::object::MachOObjectFile::getArchTriple(), getCPUSubType(), and getCPUType().
|
inline |
Definition at line 54 of file MachOUniversal.h.
References llvm::Other.