LLVM 22.0.0git
llvm::orc::MachOPlatform::HeaderOptions Struct Reference

Configuration for the mach-o header of a JITDylib. More...

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

Classes

struct  BuildVersionOpts
struct  Dylib
 A dylib for use with a dylib command (e.g. LC_ID_DYLIB, LC_LOAD_DYLIB). More...
struct  LoadDylibCmd

Public Member Functions

 HeaderOptions ()=default
 HeaderOptions (Dylib D)

Public Attributes

std::optional< DylibIDDylib
 Override for LC_IC_DYLIB.
std::vector< LoadDylibCmdLoadDylibs
 List of LC_LOAD_DYLIBs.
std::vector< std::string > RPaths
 List of LC_RPATHs.
std::vector< BuildVersionOptsBuildVersions
 List of LC_BUILD_VERSIONs.

Detailed Description

Configuration for the mach-o header of a JITDylib.

Specify common load commands that should be added to the header.

Definition at line 53 of file MachOPlatform.h.

Constructor & Destructor Documentation

◆ HeaderOptions() [1/2]

llvm::orc::MachOPlatform::HeaderOptions::HeaderOptions ( )
default

◆ HeaderOptions() [2/2]

llvm::orc::MachOPlatform::HeaderOptions::HeaderOptions ( Dylib D)
inline

Definition at line 92 of file MachOPlatform.h.

References D(), IDDylib, and llvm::move().

Member Data Documentation

◆ BuildVersions

std::vector<BuildVersionOpts> llvm::orc::MachOPlatform::HeaderOptions::BuildVersions

List of LC_BUILD_VERSIONs.

Definition at line 89 of file MachOPlatform.h.

Referenced by llvm::orc::createHeaderBlock().

◆ IDDylib

std::optional<Dylib> llvm::orc::MachOPlatform::HeaderOptions::IDDylib

Override for LC_IC_DYLIB.

If this is nullopt, {JD.getName(), 0, 0, 0} will be used.

Definition at line 82 of file MachOPlatform.h.

Referenced by llvm::orc::createHeaderBlock(), and HeaderOptions().

◆ LoadDylibs

std::vector<LoadDylibCmd> llvm::orc::MachOPlatform::HeaderOptions::LoadDylibs

List of LC_LOAD_DYLIBs.

Definition at line 85 of file MachOPlatform.h.

Referenced by llvm::orc::createHeaderBlock().

◆ RPaths

std::vector<std::string> llvm::orc::MachOPlatform::HeaderOptions::RPaths

List of LC_RPATHs.

Definition at line 87 of file MachOPlatform.h.

Referenced by llvm::orc::createHeaderBlock().


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