LLVM API Documentation

llvm::ELFSym Struct Reference

#include <ELF.h>

Collaboration diagram for llvm::ELFSym:
[legend]

List of all members.

Public Types

enum  { isGV, isExtSym, isOther }
enum  { STB_LOCAL = 0, STB_GLOBAL = 1, STB_WEAK = 2 }
enum  {
  STT_NOTYPE = 0, STT_OBJECT = 1, STT_FUNC = 2, STT_SECTION = 3,
  STT_FILE = 4
}
enum  { STV_DEFAULT = 0, STV_INTERNAL = 1, STV_HIDDEN = 2, STV_PROTECTED = 3 }

Public Member Functions

bool isGlobalValue () const
bool isExternalSym () const
const GlobalValue * getGlobalValue () const
const char * getExternalSymbol () const
 ELFSym ()
unsigned getBind () const
unsigned getType () const
bool isLocalBind () const
bool isFileType () const
void setBind (unsigned X)
void setType (unsigned X)
void setVisibility (unsigned V)

Static Public Member Functions

static ELFSym * getGV (const GlobalValue *GV, unsigned Bind, unsigned Type, unsigned Visibility)
static ELFSym * getExtSym (const char *Ext)
static ELFSym * getSectionSym ()
static ELFSym * getFileSym ()
static ELFSym * getUndefGV (const GlobalValue *GV, unsigned Bind)

Public Attributes

union {
   const GlobalValue *   GV
   const char *   Ext
} Source
unsigned SourceType
unsigned NameIdx
uint64_t Value
unsigned Size
uint8_t Info
uint8_t Other
unsigned short SectionIdx
unsigned SymTabIdx


Detailed Description

ELFSym - 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 58 of file lib/CodeGen/ELF.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
isGV 
isExtSym 
isOther 

Definition at line 70 of file lib/CodeGen/ELF.h.

anonymous enum

Enumerator:
STB_LOCAL 
STB_GLOBAL 
STB_WEAK 

Definition at line 162 of file lib/CodeGen/ELF.h.

anonymous enum

Enumerator:
STT_NOTYPE 
STT_OBJECT 
STT_FUNC 
STT_SECTION 
STT_FILE 

Definition at line 168 of file lib/CodeGen/ELF.h.

anonymous enum

Enumerator:
STV_DEFAULT 
STV_INTERNAL 
STV_HIDDEN 
STV_PROTECTED 

Definition at line 176 of file lib/CodeGen/ELF.h.


Constructor & Destructor Documentation

llvm::ELFSym::ELFSym (  )  [inline]

Definition at line 183 of file lib/CodeGen/ELF.h.

Referenced by getExtSym(), getFileSym(), getGV(), getSectionSym(), and getUndefGV().


Member Function Documentation

bool llvm::ELFSym::isGlobalValue (  )  const [inline]

Definition at line 77 of file lib/CodeGen/ELF.h.

References isGV, and SourceType.

bool llvm::ELFSym::isExternalSym (  )  const [inline]

Definition at line 78 of file lib/CodeGen/ELF.h.

References isExtSym, and SourceType.

const GlobalValue* llvm::ELFSym::getGlobalValue (  )  const [inline]

Definition at line 82 of file lib/CodeGen/ELF.h.

References isGV, Source, and SourceType.

const char* llvm::ELFSym::getExternalSymbol (  )  const [inline]

Definition at line 89 of file lib/CodeGen/ELF.h.

References isExtSym, Source, and SourceType.

static ELFSym* llvm::ELFSym::getGV ( const GlobalValue *  GV,
unsigned  Bind,
unsigned  Type,
unsigned  Visibility 
) [inline, static]

static ELFSym* llvm::ELFSym::getExtSym ( const char *  Ext  )  [inline, static]

static ELFSym* llvm::ELFSym::getSectionSym (  )  [inline, static]

static ELFSym* llvm::ELFSym::getFileSym (  )  [inline, static]

static ELFSym* llvm::ELFSym::getUndefGV ( const GlobalValue *  GV,
unsigned  Bind 
) [inline, static]

unsigned llvm::ELFSym::getBind (  )  const [inline]

Definition at line 187 of file lib/CodeGen/ELF.h.

References Info.

Referenced by isLocalBind().

unsigned llvm::ELFSym::getType (  )  const [inline]

Definition at line 188 of file lib/CodeGen/ELF.h.

References Info.

Referenced by isFileType().

bool llvm::ELFSym::isLocalBind (  )  const [inline]

Definition at line 189 of file lib/CodeGen/ELF.h.

References getBind(), and STB_LOCAL.

bool llvm::ELFSym::isFileType (  )  const [inline]

Definition at line 190 of file lib/CodeGen/ELF.h.

References getType(), and STT_FILE.

void llvm::ELFSym::setBind ( unsigned  X  )  [inline]

Definition at line 192 of file lib/CodeGen/ELF.h.

References Info.

Referenced by getExtSym(), getFileSym(), getGV(), getSectionSym(), and getUndefGV().

void llvm::ELFSym::setType ( unsigned  X  )  [inline]

Definition at line 197 of file lib/CodeGen/ELF.h.

References Info.

Referenced by getExtSym(), getFileSym(), getGV(), getSectionSym(), and getUndefGV().

void llvm::ELFSym::setVisibility ( unsigned  V  )  [inline]

Definition at line 202 of file lib/CodeGen/ELF.h.

References Other.

Referenced by getExtSym(), getFileSym(), getGV(), getSectionSym(), and getUndefGV().


Member Data Documentation

Definition at line 64 of file lib/CodeGen/ELF.h.

Referenced by getGV(), and getUndefGV().

const char* llvm::ELFSym::Ext

Definition at line 65 of file lib/CodeGen/ELF.h.

Referenced by getExtSym().

union { ... } llvm::ELFSym::Source

Definition at line 152 of file lib/CodeGen/ELF.h.

Definition at line 153 of file lib/CodeGen/ELF.h.

Referenced by llvm::ELFCodeEmitter::finishFunction().

Definition at line 154 of file lib/CodeGen/ELF.h.

Referenced by llvm::ELFCodeEmitter::finishFunction().

Definition at line 155 of file lib/CodeGen/ELF.h.

Referenced by getBind(), getType(), setBind(), and setType().

Definition at line 156 of file lib/CodeGen/ELF.h.

Referenced by setVisibility().

Definition at line 160 of file lib/CodeGen/ELF.h.

Referenced by llvm::ELFSection::getSymbolTableIndex().


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