diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-20 18:07:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-20 18:07:48 +0000 |
commit | 2c08dcc276e218193beffbddf2a30f4d88e8af58 (patch) | |
tree | 563b64be854b52ad7a7c74fb882948f85f4c54d5 /include/llvm/Function.h | |
parent | d2cc017f4672efad7b16b5c78031f50fe8c95794 (diff) |
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
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index bb2c3ca996..34b6c0f252 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -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; } //===--------------------------------------------------------------------===// |