LLVM 22.0.0git
llvm::orc::MachOBuilder< MachOTraits >::Section Struct Reference

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

Inheritance diagram for llvm::orc::MachOBuilder< MachOTraits >::Section:
[legend]

Public Member Functions

 Section (MachOBuilder &Builder, StringRef SecName, StringRef SegName)
RelocTarget addSymbol (int32_t Offset, StringRef Name, uint8_t Type, uint16_t Desc)
void addReloc (int32_t Offset, RelocTarget Target, bool PCRel, unsigned Length, unsigned Type)
auto & rawStruct ()
Public Member Functions inherited from llvm::orc::MachOBuilder< MachOTraits >::RelocTarget
 RelocTarget (const Section &S)
 RelocTarget (SymbolContainer &SC, size_t Idx)
bool isSymbol ()
uint32_t getSymbolNum ()
uint32_t getSectionId ()
MachOTraits::NList & nlist ()

Public Attributes

MachOBuilderBuilder
SectionContent Content
size_t SectionNumber = 0
SymbolContainer SC
std::vector< RelocRelocs

Detailed Description

template<typename MachOTraits>
struct llvm::orc::MachOBuilder< MachOTraits >::Section

Definition at line 224 of file MachOBuilder.h.

Constructor & Destructor Documentation

◆ Section()

Member Function Documentation

◆ addReloc()

template<typename MachOTraits>
void llvm::orc::MachOBuilder< MachOTraits >::Section::addReloc ( int32_t Offset,
RelocTarget Target,
bool PCRel,
unsigned Length,
unsigned Type )
inline

◆ addSymbol()

template<typename MachOTraits>
RelocTarget llvm::orc::MachOBuilder< MachOTraits >::Section::addSymbol ( int32_t Offset,
StringRef Name,
uint8_t Type,
uint16_t Desc )
inline

◆ rawStruct()

template<typename MachOTraits>
auto & llvm::orc::MachOBuilder< MachOTraits >::Section::rawStruct ( )
inline

Definition at line 258 of file MachOBuilder.h.

Referenced by Section().

Member Data Documentation

◆ Builder

template<typename MachOTraits>
MachOBuilder& llvm::orc::MachOBuilder< MachOTraits >::Section::Builder

Definition at line 225 of file MachOBuilder.h.

Referenced by addSymbol(), and Section().

◆ Content

template<typename MachOTraits>
SectionContent llvm::orc::MachOBuilder< MachOTraits >::Section::Content

Definition at line 226 of file MachOBuilder.h.

◆ Relocs

template<typename MachOTraits>
std::vector<Reloc> llvm::orc::MachOBuilder< MachOTraits >::Section::Relocs

Definition at line 229 of file MachOBuilder.h.

Referenced by addReloc().

◆ SC

template<typename MachOTraits>
SymbolContainer llvm::orc::MachOBuilder< MachOTraits >::Section::SC

Definition at line 228 of file MachOBuilder.h.

Referenced by addSymbol().

◆ SectionNumber

template<typename MachOTraits>
size_t llvm::orc::MachOBuilder< MachOTraits >::Section::SectionNumber = 0

Definition at line 227 of file MachOBuilder.h.


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