[llvm-commits] CVS: llvm/include/llvm/SymbolTable.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 9 13:40:01 PST 2003


Changes in directory llvm/include/llvm:

SymbolTable.h updated: 1.27 -> 1.28

---
Log message:

Fix PR95.  I'm checking this patch in for Reid Spencer, who figured it out
and wrote it up.  Thanks!!


---
Diffs of the changes:  (+5 -1)

Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.27 llvm/include/llvm/SymbolTable.h:1.28
--- llvm/include/llvm/SymbolTable.h:1.27	Wed Oct 22 23:01:49 2003
+++ llvm/include/llvm/SymbolTable.h	Sun Nov  9 13:39:48 2003
@@ -36,7 +36,7 @@
   typedef VarMap::iterator type_iterator;
   typedef VarMap::const_iterator type_const_iterator;
 
-  inline SymbolTable() : InternallyInconsistent(false) {}
+  inline SymbolTable() : InternallyInconsistent(false), LastUnique(0) {}
   ~SymbolTable();
 
   // lookup - Returns null on failure...
@@ -108,6 +108,10 @@
   // set, removal from the symbol table is a noop.
   //
   bool InternallyInconsistent;
+
+  // LastUnique - This value is used to retain the last unique value used
+  // by getUniqueName to generate unique names.
+  unsigned long LastUnique;
 
   inline super::value_type operator[](const Type *Ty) {
     assert(0 && "Should not use this operator to access symbol table!");





More information about the llvm-commits mailing list