mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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:
@ -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; }
|
||||
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user