LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::objcopy::macho::SymbolEntry Struct Reference

#include "ObjCopy/MachO/MachOObject.h"

Public Member Functions

bool isExternalSymbol () const
 
bool isLocalSymbol () const
 
bool isUndefinedSymbol () const
 
bool isSwiftSymbol () const
 
std::optional< uint32_tsection () const
 

Public Attributes

std::string Name
 
bool Referenced = false
 
uint32_t Index
 
uint8_t n_type
 
uint8_t n_sect
 
uint16_t n_desc
 
uint64_t n_value
 

Detailed Description

Definition at line 104 of file MachOObject.h.

Member Function Documentation

◆ isExternalSymbol()

bool llvm::objcopy::macho::SymbolEntry::isExternalSymbol ( ) const
inline

Definition at line 113 of file MachOObject.h.

References llvm::MachO::N_EXT, and n_type.

Referenced by isLocalSymbol().

◆ isLocalSymbol()

bool llvm::objcopy::macho::SymbolEntry::isLocalSymbol ( ) const
inline

Definition at line 115 of file MachOObject.h.

References isExternalSymbol().

◆ isSwiftSymbol()

bool llvm::objcopy::macho::SymbolEntry::isSwiftSymbol ( ) const
inline

Definition at line 121 of file MachOObject.h.

References Name, and llvm::StringRef::starts_with().

◆ isUndefinedSymbol()

bool llvm::objcopy::macho::SymbolEntry::isUndefinedSymbol ( ) const
inline

Definition at line 117 of file MachOObject.h.

References llvm::MachO::N_TYPE, n_type, and llvm::MachO::N_UNDF.

◆ section()

std::optional< uint32_t > llvm::objcopy::macho::SymbolEntry::section ( ) const
inline

Definition at line 126 of file MachOObject.h.

References n_sect, and llvm::MachO::NO_SECT.

Member Data Documentation

◆ Index

uint32_t llvm::objcopy::macho::SymbolEntry::Index

Definition at line 107 of file MachOObject.h.

◆ n_desc

uint16_t llvm::objcopy::macho::SymbolEntry::n_desc

Definition at line 110 of file MachOObject.h.

Referenced by constructSymbolEntry(), and writeNListEntry().

◆ n_sect

uint8_t llvm::objcopy::macho::SymbolEntry::n_sect

Definition at line 109 of file MachOObject.h.

Referenced by constructSymbolEntry(), section(), and writeNListEntry().

◆ n_type

uint8_t llvm::objcopy::macho::SymbolEntry::n_type

◆ n_value

uint64_t llvm::objcopy::macho::SymbolEntry::n_value

Definition at line 111 of file MachOObject.h.

Referenced by constructSymbolEntry(), and writeNListEntry().

◆ Name

std::string llvm::objcopy::macho::SymbolEntry::Name

Definition at line 105 of file MachOObject.h.

Referenced by constructSymbolEntry(), and isSwiftSymbol().

◆ Referenced

bool llvm::objcopy::macho::SymbolEntry::Referenced = false

Definition at line 106 of file MachOObject.h.


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