LLVM API Documentation
#include <ValueSymbolTable.h>
Public Types | |
Types | |
| typedef StringMap< Value * > | ValueMap |
| A mapping of names to values. | |
| typedef ValueMap::iterator | iterator |
| An iterator over a ValueMap. | |
| typedef ValueMap::const_iterator | const_iterator |
| A const_iterator over a ValueMap. | |
Public Member Functions | |
Constructors | |
| ValueSymbolTable () | |
| ~ValueSymbolTable () | |
Accessors | |
| Value * | lookup (const StringRef &Name) const |
| Lookup a named Value. | |
| bool | empty () const |
| Determine if the symbol table is empty. | |
| unsigned | size () const |
| The number of name/type pairs is returned. | |
| void | dump () const |
| Print out symbol table on stderr. | |
Iteration | |
| iterator | begin () |
| Get an iterator that from the beginning of the symbol table. | |
| const_iterator | begin () const |
| Get a const_iterator that from the beginning of the symbol table. | |
| iterator | end () |
| Get an iterator to the end of the symbol table. | |
| const_iterator | end () const |
| Get a const_iterator to the end of the symbol table. | |
Friends | |
| class | Value |
| class | SymbolTableListTraits< Argument, Function > |
| class | SymbolTableListTraits< BasicBlock, Function > |
| class | SymbolTableListTraits< Instruction, BasicBlock > |
| class | SymbolTableListTraits< Function, Module > |
| class | SymbolTableListTraits< GlobalVariable, Module > |
| class | SymbolTableListTraits< GlobalAlias, Module > |
| class | SymbolTableListTraits< NamedMDNode, Module > |
Definition at line 34 of file ValueSymbolTable.h.
| typedef StringMap<Value*> llvm::ValueSymbolTable::ValueMap |
| typedef ValueMap::iterator llvm::ValueSymbolTable::iterator |
| typedef ValueMap::const_iterator llvm::ValueSymbolTable::const_iterator |
| llvm::ValueSymbolTable::ValueSymbolTable | ( | ) | [inline] |
Definition at line 60 of file ValueSymbolTable.h.
| ValueSymbolTable::~ValueSymbolTable | ( | ) |
Lookup a named Value.
This method finds the value with the given Name in the the symbol table.
Name Definition at line 72 of file ValueSymbolTable.h.
Referenced by llvm::Module::getNamedMetadata(), llvm::Module::getNamedValue(), llvm::Module::getOrInsertNamedMetadata(), LinkFunctionProtos(), and LinkGlobals().
| bool llvm::ValueSymbolTable::empty | ( | ) | const [inline] |
Determine if the symbol table is empty.
Definition at line 76 of file ValueSymbolTable.h.
Referenced by WriteValueSymbolTable().
| unsigned llvm::ValueSymbolTable::size | ( | ) | const [inline] |
| void ValueSymbolTable::dump | ( | ) | const |
Print out symbol table on stderr.
This function can be used from the debugger to display the content of the symbol table while debugging.
Definition at line 114 of file ValueSymbolTable.cpp.
| iterator llvm::ValueSymbolTable::begin | ( | ) | [inline] |
Get an iterator that from the beginning of the symbol table.
Definition at line 91 of file ValueSymbolTable.h.
Referenced by dump(), StripSymtab(), and WriteValueSymbolTable().
| const_iterator llvm::ValueSymbolTable::begin | ( | ) | const [inline] |
Get a const_iterator that from the beginning of the symbol table.
Definition at line 94 of file ValueSymbolTable.h.
| iterator llvm::ValueSymbolTable::end | ( | ) | [inline] |
Get an iterator to the end of the symbol table.
Definition at line 97 of file ValueSymbolTable.h.
Referenced by dump(), StripSymtab(), and WriteValueSymbolTable().
| const_iterator llvm::ValueSymbolTable::end | ( | ) | const [inline] |
Get a const_iterator to the end of the symbol table.
Definition at line 100 of file ValueSymbolTable.h.
friend class Value [friend] |
Definition at line 35 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< Argument, Function > [friend] |
Definition at line 36 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< BasicBlock, Function > [friend] |
Definition at line 37 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< Instruction, BasicBlock > [friend] |
Definition at line 38 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< Function, Module > [friend] |
Definition at line 39 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< GlobalVariable, Module > [friend] |
Definition at line 40 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< GlobalAlias, Module > [friend] |
Definition at line 41 of file ValueSymbolTable.h.
friend class SymbolTableListTraits< NamedMDNode, Module > [friend] |
Definition at line 42 of file ValueSymbolTable.h.