LLVM 20.0.0git
Classes | Public Member Functions | Public Attributes | List of all members
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...
 

Public Member Functions

 HeaderOptions ()=default
 
 HeaderOptions (Dylib D)
 

Public Attributes

std::optional< DylibIDDylib
 Override for LC_IC_DYLIB.
 
std::vector< DylibLoadDylibs
 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 52 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 84 of file MachOPlatform.h.

Member Data Documentation

◆ BuildVersions

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

List of LC_BUILD_VERSIONs.

Definition at line 81 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 74 of file MachOPlatform.h.

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

◆ LoadDylibs

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

List of LC_LOAD_DYLIBs.

Definition at line 77 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 79 of file MachOPlatform.h.

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


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