Eliminate the concept of a deferred symbol table. The optimization really isn't,

and it causes obscure bugs to show up in passes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-11-20 18:07:48 +00:00
parent d2cc017f46
commit 2c08dcc276
2 changed files with 4 additions and 35 deletions

View File

@ -111,22 +111,12 @@ public:
//===--------------------------------------------------------------------===//
// Symbol Table Accessing functions...
/// hasSymbolTable() - Returns true if there is a symbol table allocated to
/// this object AND if there is at least one name in it!
///
bool hasSymbolTable() const;
/// getSymbolTable() - CAUTION: The current symbol table may be null if there
/// are no names (ie, the symbol table is empty)
/// getSymbolTable() - Return the symbol table...
///
inline SymbolTable *getSymbolTable() { return SymTab; }
inline const SymbolTable *getSymbolTable() const { return SymTab; }
/// getSymbolTableSure is guaranteed to not return a null pointer, because if
/// the function does not already have a symtab, one is created. Use this if
/// you intend to put something into the symbol table for the function.
///
SymbolTable *getSymbolTableSure(); // Implemented in Value.cpp
SymbolTable *getSymbolTableSure() { return SymTab; }
bool hasSymbolTable() const { return true; }
//===--------------------------------------------------------------------===//