LLVM 20.0.0git
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
llvm::orc::MachOBuilder< MachOTraits > Class Template Reference

#include "llvm/ExecutionEngine/Orc/MachOBuilder.h"

Classes

struct  Reloc
 
class  RelocTarget
 
struct  Section
 
struct  SectionContent
 
struct  Segment
 

Public Types

using StringId = size_t
 

Public Member Functions

 MachOBuilder (size_t PageSize)
 
template<MachO::LoadCommandType LCType, typename... ArgTs>
MachOBuilderLoadCommand< LCType > & addLoadCommand (ArgTs &&...Args)
 
StringId addString (StringRef Str)
 
SegmentaddSegment (StringRef SegName)
 
RelocTarget addSymbol (StringRef Name, uint8_t Type, uint8_t Sect, uint16_t Desc, typename MachOTraits::UIntPtr Value)
 
size_t layout ()
 
void write (MutableArrayRef< char > Buffer)
 

Public Attributes

MachOTraits::Header Header
 

Detailed Description

template<typename MachOTraits>
class llvm::orc::MachOBuilder< MachOTraits >

Definition at line 149 of file MachOBuilder.h.

Member Typedef Documentation

◆ StringId

template<typename MachOTraits >
using llvm::orc::MachOBuilder< MachOTraits >::StringId = size_t

Definition at line 168 of file MachOBuilder.h.

Constructor & Destructor Documentation

◆ MachOBuilder()

template<typename MachOTraits >
llvm::orc::MachOBuilder< MachOTraits >::MachOBuilder ( size_t  PageSize)
inline

Definition at line 296 of file MachOBuilder.h.

References llvm::orc::MachOBuilder< MachOTraits >::Header.

Member Function Documentation

◆ addLoadCommand()

template<typename MachOTraits >
template<MachO::LoadCommandType LCType, typename... ArgTs>
MachOBuilderLoadCommand< LCType > & llvm::orc::MachOBuilder< MachOTraits >::addLoadCommand ( ArgTs &&...  Args)
inline

Definition at line 302 of file MachOBuilder.h.

◆ addSegment()

template<typename MachOTraits >
Segment & llvm::orc::MachOBuilder< MachOTraits >::addSegment ( StringRef  SegName)
inline

Definition at line 318 of file MachOBuilder.h.

◆ addString()

template<typename MachOTraits >
StringId llvm::orc::MachOBuilder< MachOTraits >::addString ( StringRef  Str)
inline

◆ addSymbol()

template<typename MachOTraits >
RelocTarget llvm::orc::MachOBuilder< MachOTraits >::addSymbol ( StringRef  Name,
uint8_t  Type,
uint8_t  Sect,
uint16_t  Desc,
typename MachOTraits::UIntPtr  Value 
)
inline

Definition at line 323 of file MachOBuilder.h.

References llvm::orc::MachOBuilder< MachOTraits >::addString(), Name, and Sym.

◆ layout()

template<typename MachOTraits >
size_t llvm::orc::MachOBuilder< MachOTraits >::layout ( )
inline

◆ write()

template<typename MachOTraits >
void llvm::orc::MachOBuilder< MachOTraits >::write ( MutableArrayRef< char Buffer)
inline

Definition at line 444 of file MachOBuilder.h.

References llvm::Offset.

Member Data Documentation

◆ Header

template<typename MachOTraits >
MachOTraits::Header llvm::orc::MachOBuilder< MachOTraits >::Header

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