LLVM API Documentation

llvm::MachOSym Struct Reference

#include <MachO.h>

Collaboration diagram for llvm::MachOSym:
[legend]

List of all members.

Public Types

enum  { NO_SECT = 0 }
enum  {
  N_UNDF = 0x0, N_ABS = 0x2, N_SECT = 0xe, N_PBUD = 0xc,
  N_INDR = 0xa
}
enum  { N_EXT = 0x01, N_PEXT = 0x10 }
enum  {
  REFERENCE_FLAG_UNDEFINED_NON_LAZY = 0, REFERENCE_FLAG_UNDEFINED_LAZY = 1, REFERENCE_FLAG_DEFINED = 2, REFERENCE_FLAG_PRIVATE_DEFINED = 3,
  REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY = 4, REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY = 5
}
enum  { N_NO_DEAD_STRIP = 0x0020, N_WEAK_REF = 0x0040, N_WEAK_DEF = 0x0080 }

Public Member Functions

 MachOSym (const GlobalValue *gv, std::string name, uint8_t sect, const TargetAsmInfo *TAI)

Static Public Member Functions

static bool PartitionByLocal (const MachOSym &Sym)
static bool PartitionByDefined (const MachOSym &Sym)

Public Attributes

const GlobalValue * GV
std::string GVName
uint32_t n_strx
uint8_t n_type
uint8_t n_sect
int16_t n_desc
uint64_t n_value

Classes

struct  SymCmp


Detailed Description

MachOSym - This struct contains information about each symbol that is added to logical symbol table for the module. This is eventually turned into a real symbol table in the file.

Definition at line 29 of file MachO.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NO_SECT 

Definition at line 40 of file MachO.h.

anonymous enum

Enumerator:
N_UNDF 
N_ABS 
N_SECT 
N_PBUD 
N_INDR 

Definition at line 44 of file MachO.h.

anonymous enum

Enumerator:
N_EXT 
N_PEXT 

Definition at line 52 of file MachO.h.

anonymous enum

Enumerator:
REFERENCE_FLAG_UNDEFINED_NON_LAZY 
REFERENCE_FLAG_UNDEFINED_LAZY 
REFERENCE_FLAG_DEFINED 
REFERENCE_FLAG_PRIVATE_DEFINED 
REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY 
REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY 

Definition at line 58 of file MachO.h.

anonymous enum

Enumerator:
N_NO_DEAD_STRIP 
N_WEAK_REF 
N_WEAK_DEF 

Definition at line 65 of file MachO.h.


Constructor & Destructor Documentation

llvm::MachOSym::MachOSym ( const GlobalValue *  gv,
std::string  name,
uint8_t  sect,
const TargetAsmInfo *  TAI 
)


Member Function Documentation

static bool llvm::MachOSym::PartitionByLocal ( const MachOSym &  Sym  )  [inline, static]

PartitionByLocal - Simple boolean predicate that returns true if Sym is a local symbol rather than an external symbol.

Definition at line 84 of file MachO.h.

References N_EXT, N_PEXT, and n_type.

static bool llvm::MachOSym::PartitionByDefined ( const MachOSym &  Sym  )  [inline, static]

PartitionByDefined - Simple boolean predicate that returns true if Sym is defined in this module.

Definition at line 91 of file MachO.h.

References N_SECT, and n_type.


Member Data Documentation

Definition at line 30 of file MachO.h.

Definition at line 31 of file MachO.h.

Referenced by MachOSym(), and llvm::MachOSym::SymCmp::operator()().

Definition at line 32 of file MachO.h.

Definition at line 33 of file MachO.h.

Referenced by MachOSym(), PartitionByDefined(), and PartitionByLocal().

Definition at line 34 of file MachO.h.

Definition at line 35 of file MachO.h.

Definition at line 36 of file MachO.h.


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