[llvm-commits] CVS: llvm/include/llvm/Function.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 20 12:08:01 PST 2002
Changes in directory llvm/include/llvm:
Function.h updated: 1.38 -> 1.39
---
Log message:
Eliminate the concept of a deferred symbol table. The optimization really isn't,
and it causes obscure bugs to show up in passes.
---
Diffs of the changes:
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.38 llvm/include/llvm/Function.h:1.39
--- llvm/include/llvm/Function.h:1.38 Tue Oct 15 16:26:24 2002
+++ llvm/include/llvm/Function.h Wed Nov 20 12:07:46 2002
@@ -111,22 +111,12 @@
//===--------------------------------------------------------------------===//
// 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; }
//===--------------------------------------------------------------------===//
More information about the llvm-commits
mailing list