LLVM 20.0.0git
|
#include "llvm/Object/MachOUniversal.h"
Classes | |
class | object_iterator |
class | ObjectForArch |
Static Public Member Functions | |
static Expected< std::unique_ptr< MachOUniversalBinary > > | create (MemoryBufferRef Source) |
static bool | classof (Binary const *V) |
Static Public Member Functions inherited from llvm::object::Binary | |
static Error | checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size) |
Static Public Attributes | |
static constexpr uint32_t | MaxSectionAlignment = 15 |
Additional Inherited Members | |
Protected Types inherited from llvm::object::Binary | |
enum | { ID_Archive , ID_MachOUniversalBinary , ID_COFFImportFile , ID_IR , ID_TapiUniversal , ID_TapiFile , ID_Minidump , ID_WinRes , ID_Offload , ID_StartObjects , ID_COFF , ID_XCOFF32 , ID_XCOFF64 , ID_ELF32L , ID_ELF32B , ID_ELF64L , ID_ELF64B , ID_MachO32L , ID_MachO32B , ID_MachO64L , ID_MachO64B , ID_GOFF , ID_Wasm , ID_EndObjects } |
Protected Member Functions inherited from llvm::object::Binary | |
Binary (unsigned int Type, MemoryBufferRef 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 | |
MemoryBufferRef | Data |
Definition at line 30 of file MachOUniversal.h.
MachOUniversalBinary::MachOUniversalBinary | ( | MemoryBufferRef | Souce, |
Error & | Err | ||
) |
Definition at line 132 of file MachOUniversal.cpp.
References A, B, llvm::StringRef::begin(), llvm::MachO::CPU_SUBTYPE_MASK, llvm::object::Binary::Data, llvm::MachO::FAT_MAGIC, llvm::MachO::FAT_MAGIC_64, llvm::MemoryBufferRef::getBufferSize(), llvm::object::Binary::getData(), H, llvm::object::invalid_file_type, malformedError(), MaxSectionAlignment, llvm::StringRef::size(), and llvm::Error::success().
|
inline |
Definition at line 136 of file MachOUniversal.h.
Referenced by objects().
Definition at line 151 of file MachOUniversal.h.
|
static |
Definition at line 123 of file MachOUniversal.cpp.
References llvm::Error::success().
Referenced by llvm::object::createBinary(), llvm::orc::getMachOSliceRangeForTriple(), and llvm::orc::loadMachORelocatableObjectFromUniversalBinary().
|
inline |
Definition at line 139 of file MachOUniversal.h.
Referenced by objects().
Expected< std::unique_ptr< Archive > > MachOUniversalBinary::getArchiveForArch | ( | StringRef | ArchName | ) | const |
Definition at line 267 of file MachOUniversal.cpp.
References getObjectForArch().
Expected< std::unique_ptr< IRObjectFile > > MachOUniversalBinary::getIRObjectForArch | ( | StringRef | ArchName, |
LLVMContext & | Ctx | ||
) | const |
Definition at line 258 of file MachOUniversal.cpp.
References getObjectForArch().
Expected< std::unique_ptr< MachOObjectFile > > MachOUniversalBinary::getMachOObjectForArch | ( | StringRef | ArchName | ) | const |
Definition at line 250 of file MachOUniversal.cpp.
References getObjectForArch().
|
inline |
Definition at line 147 of file MachOUniversal.h.
Referenced by llvm::object::MachOUniversalBinary::ObjectForArch::getAlign(), llvm::object::MachOUniversalBinary::ObjectForArch::getCPUSubType(), llvm::object::MachOUniversalBinary::ObjectForArch::getCPUType(), llvm::object::MachOUniversalBinary::ObjectForArch::getOffset(), llvm::object::MachOUniversalBinary::ObjectForArch::getReserved(), llvm::object::MachOUniversalBinary::ObjectForArch::getSize(), and llvm::object::MachOUniversalBinary::ObjectForArch::ObjectForArch().
|
inline |
Definition at line 148 of file MachOUniversal.h.
Referenced by llvm::object::MachOUniversalBinary::ObjectForArch::ObjectForArch().
Expected< MachOUniversalBinary::ObjectForArch > MachOUniversalBinary::getObjectForArch | ( | StringRef | ArchName | ) | const |
Definition at line 234 of file MachOUniversal.cpp.
References llvm::object::arch_not_found, objects(), and llvm::Triple::UnknownArch.
Referenced by getArchiveForArch(), getIRObjectForArch(), and getMachOObjectForArch().
|
inline |
Definition at line 143 of file MachOUniversal.h.
References begin_objects(), end_objects(), and llvm::make_range().
Referenced by llvm::orc::getMachOSliceRangeForTriple(), and getObjectForArch().
|
staticconstexpr |
Definition at line 36 of file MachOUniversal.h.
Referenced by calculateFileAlignment(), and MachOUniversalBinary().