LLVM  12.0.0git
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
llvm::object::MachOUniversalBinary Class Reference

#include "llvm/Object/MachOUniversal.h"

Inheritance diagram for llvm::object::MachOUniversalBinary:
Inheritance graph
Collaboration diagram for llvm::object::MachOUniversalBinary:
Collaboration graph


class  object_iterator
class  ObjectForArch

Public Member Functions

 MachOUniversalBinary (MemoryBufferRef Souce, Error &Err)
object_iterator begin_objects () const
object_iterator end_objects () const
iterator_range< object_iteratorobjects () const
uint32_t getMagic () const
uint32_t getNumberOfObjects () const
Expected< ObjectForArchgetObjectForArch (StringRef ArchName) const
Expected< std::unique_ptr< MachOObjectFile > > getMachOObjectForArch (StringRef ArchName) const
Expected< std::unique_ptr< IRObjectFile > > getIRObjectForArch (StringRef ArchName, LLVMContext &Ctx) const
Expected< std::unique_ptr< Archive > > getArchiveForArch (StringRef ArchName) const
- Public Member Functions inherited from llvm::object::Binary
 Binary ()=delete
 Binary (const Binary &other)=delete
virtual ~Binary ()
virtual Error initContent ()
StringRef getData () const
StringRef getFileName () const
MemoryBufferRef getMemoryBufferRef () const
unsigned int getType () const
bool isObject () const
bool isSymbolic () const
bool isArchive () const
bool isMachOUniversalBinary () const
bool isTapiUniversal () const
bool isELF () const
bool isMachO () const
bool isCOFF () const
bool isXCOFF () const
bool isWasm () const
bool isCOFFImportFile () const
bool isIR () const
bool isMinidump () const
bool isTapiFile () const
bool isLittleEndian () const
bool isWinRes () const
Triple::ObjectFormatType getTripleObjectFormat () const

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_StartObjects, ID_COFF, ID_XCOFF32, ID_XCOFF64,
  ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B,
  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

Detailed Description

Definition at line 31 of file MachOUniversal.h.

Constructor & Destructor Documentation

◆ MachOUniversalBinary()

MachOUniversalBinary::MachOUniversalBinary ( MemoryBufferRef  Souce,
Error Err 

Member Function Documentation

◆ begin_objects()

object_iterator llvm::object::MachOUniversalBinary::begin_objects ( ) const

◆ classof()

static bool llvm::object::MachOUniversalBinary::classof ( Binary const V)

◆ create()

Expected< std::unique_ptr< MachOUniversalBinary > > MachOUniversalBinary::create ( MemoryBufferRef  Source)

Definition at line 123 of file MachOUniversal.cpp.

Referenced by llvm::object::createBinary().

◆ end_objects()

object_iterator llvm::object::MachOUniversalBinary::end_objects ( ) const

◆ getArchiveForArch()

Expected< std::unique_ptr< Archive > > MachOUniversalBinary::getArchiveForArch ( StringRef  ArchName) const

◆ getIRObjectForArch()

Expected< std::unique_ptr< IRObjectFile > > MachOUniversalBinary::getIRObjectForArch ( StringRef  ArchName,
LLVMContext Ctx 
) const

◆ getMachOObjectForArch()

Expected< std::unique_ptr< MachOObjectFile > > MachOUniversalBinary::getMachOObjectForArch ( StringRef  ArchName) const

◆ getMagic()

uint32_t llvm::object::MachOUniversalBinary::getMagic ( ) const

◆ getNumberOfObjects()

uint32_t llvm::object::MachOUniversalBinary::getNumberOfObjects ( ) const

◆ getObjectForArch()

Expected< MachOUniversalBinary::ObjectForArch > MachOUniversalBinary::getObjectForArch ( StringRef  ArchName) const

◆ objects()

iterator_range<object_iterator> llvm::object::MachOUniversalBinary::objects ( ) const

Definition at line 144 of file MachOUniversal.h.

References begin_objects(), end_objects(), and llvm::make_range().

Referenced by getObjectForArch().

Member Data Documentation

◆ MaxSectionAlignment

constexpr uint32_t llvm::object::MachOUniversalBinary::MaxSectionAlignment = 15

Definition at line 37 of file MachOUniversal.h.

Referenced by calculateFileAlignment().

The documentation for this class was generated from the following files: