LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::object::Slice Class Reference

#include "llvm/Object/MachOUniversalWriter.h"

Public Member Functions

 Slice (const MachOObjectFile &O)
 
 Slice (const MachOObjectFile &O, uint32_t Align)
 
 Slice (const Archive &A, uint32_t CPUType, uint32_t CPUSubType, std::string ArchName, uint32_t Align)
 This constructor takes pre-specified. More...
 
void setP2Alignment (uint32_t Align)
 
const BinarygetBinary () const
 
uint32_t getCPUType () const
 
uint32_t getCPUSubType () const
 
uint32_t getP2Alignment () const
 
uint64_t getCPUID () const
 
std::string getArchString () const
 

Static Public Member Functions

static Expected< Slicecreate (const Archive &A, LLVMContext *LLVMCtx=nullptr)
 
static Expected< Slicecreate (const IRObjectFile &IRO, uint32_t Align)
 

Friends

bool operator< (const Slice &Lhs, const Slice &Rhs)
 

Detailed Description

Definition at line 27 of file MachOUniversalWriter.h.

Constructor & Destructor Documentation

◆ Slice() [1/3]

Slice::Slice ( const MachOObjectFile O)
explicit

Definition at line 94 of file MachOUniversalWriter.cpp.

◆ Slice() [2/3]

Slice::Slice ( const MachOObjectFile O,
uint32_t  Align 
)

Definition at line 83 of file MachOUniversalWriter.cpp.

References string.

◆ Slice() [3/3]

Slice::Slice ( const Archive A,
uint32_t  CPUType,
uint32_t  CPUSubType,
std::string  ArchName,
uint32_t  Align 
)

This constructor takes pre-specified.

Parameters
CPUType

Definition at line 78 of file MachOUniversalWriter.cpp.

Member Function Documentation

◆ create() [1/2]

static Expected<Slice> llvm::object::Slice::create ( const Archive A,
LLVMContext LLVMCtx = nullptr 
)
static

◆ create() [2/2]

Expected< Slice > Slice::create ( const IRObjectFile IRO,
uint32_t  Align 
)
static

◆ getArchString()

std::string llvm::object::Slice::getArchString ( ) const
inline

Definition at line 71 of file MachOUniversalWriter.h.

References llvm::MachO::CPU_SUBTYPE_MASK.

◆ getBinary()

const Binary* llvm::object::Slice::getBinary ( ) const
inline

Definition at line 59 of file MachOUniversalWriter.h.

References B.

◆ getCPUID()

uint64_t llvm::object::Slice::getCPUID ( ) const
inline

Definition at line 67 of file MachOUniversalWriter.h.

◆ getCPUSubType()

uint32_t llvm::object::Slice::getCPUSubType ( ) const
inline

Definition at line 63 of file MachOUniversalWriter.h.

◆ getCPUType()

uint32_t llvm::object::Slice::getCPUType ( ) const
inline

Definition at line 61 of file MachOUniversalWriter.h.

◆ getP2Alignment()

uint32_t llvm::object::Slice::getP2Alignment ( ) const
inline

Definition at line 65 of file MachOUniversalWriter.h.

◆ setP2Alignment()

void llvm::object::Slice::setP2Alignment ( uint32_t  Align)
inline

Definition at line 57 of file MachOUniversalWriter.h.

References Align.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Slice Lhs,
const Slice Rhs 
)
friend

Definition at line 79 of file MachOUniversalWriter.h.


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