+
+ //===--------------------------------------------------------------------===//
+ // 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;
+
+ // CAUTION: The current symbol table may be null if there are no names (ie,
+ // the symbol table is empty)
+ //
+ 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
+