diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-15 21:26:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-15 21:26:29 +0000 |
commit | 0dad6e9c95984804953db0fdcbe0c907d9ee351e (patch) | |
tree | fba6caf31e19c26de8cbd61b9e7eeccce09c0026 /include/llvm/SymbolTable.h | |
parent | 1b7de965dd3291f4bf96f0a9ce7cf5fdcb4cd7fd (diff) |
- Eliminate SymbolTable::ParentSymTab, ST::localLookup, and
Function::ParentSymTab. These aren't needed at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/SymbolTable.h')
-rw-r--r-- | include/llvm/SymbolTable.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h index 8762b4b581..7e7cb51f20 100644 --- a/include/llvm/SymbolTable.h +++ b/include/llvm/SymbolTable.h @@ -25,33 +25,16 @@ class SymbolTable : public AbstractTypeUser, public: typedef std::map<const std::string, Value *> VarMap; typedef std::map<const Type *, VarMap> super; -private: - - SymbolTable *ParentSymTab; - friend class Function; - inline void setParentSymTab(SymbolTable *P) { ParentSymTab = P; } - -public: typedef VarMap::iterator type_iterator; typedef VarMap::const_iterator type_const_iterator; - inline SymbolTable(SymbolTable *P = 0) { - ParentSymTab = P; - InternallyInconsistent = false; - } + inline SymbolTable() : InternallyInconsistent(false) {} ~SymbolTable(); - SymbolTable *getParentSymTab() { return ParentSymTab; } - // lookup - Returns null on failure... Value *lookup(const Type *Ty, const std::string &name); - // localLookup - Look in this symbol table without falling back on parent, - // if non-existing. Returns null on failure... - // - Value *localLookup(const Type *Ty, const std::string &name); - // insert - Add named definition to the symbol table... inline void insert(Value *N) { assert(N->hasName() && "Value must be named to go into symbol table!"); |