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

#include "ObjCopy/MachO/MachOObject.h"

Collaboration diagram for llvm::objcopy::macho::SymbolEntry:
Collaboration graph
[legend]

Public Member Functions

bool isExternalSymbol () const
 
bool isLocalSymbol () const
 
bool isUndefinedSymbol () const
 
bool isSwiftSymbol () const
 
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 110 of file MachOObject.h.

Member Function Documentation

◆ isExternalSymbol()

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

Definition at line 119 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 121 of file MachOObject.h.

References isExternalSymbol().

◆ isSwiftSymbol()

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

Definition at line 127 of file MachOObject.h.

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

◆ isUndefinedSymbol()

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

Definition at line 123 of file MachOObject.h.

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

◆ section()

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

Definition at line 132 of file MachOObject.h.

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

Member Data Documentation

◆ Index

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

Definition at line 113 of file MachOObject.h.

◆ n_desc

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

Definition at line 116 of file MachOObject.h.

Referenced by constructSymbolEntry(), and writeNListEntry().

◆ n_sect

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

Definition at line 115 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 117 of file MachOObject.h.

Referenced by constructSymbolEntry(), and writeNListEntry().

◆ Name

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

Definition at line 111 of file MachOObject.h.

Referenced by constructSymbolEntry(), isSwiftSymbol(), and updateAndRemoveSymbols().

◆ Referenced

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

Definition at line 112 of file MachOObject.h.


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