Changes in directory llvm/include/llvm/ADT:

SmallPtrSet.h updated: 1.6 -> 1.7
---
Log message:

do not let the table fill up with tombstones.


---
Diffs of the changes:  (+2 -0)

 SmallPtrSet.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/include/llvm/ADT/SmallPtrSet.h
diff -u llvm/include/llvm/ADT/SmallPtrSet.h:1.6 
llvm/include/llvm/ADT/SmallPtrSet.h:1.7
--- llvm/include/llvm/ADT/SmallPtrSet.h:1.6     Sat Jan 27 17:52:33 2007
+++ llvm/include/llvm/ADT/SmallPtrSet.h Tue Feb  6 19:11:24 2007
@@ -51,6 +51,7 @@
   
   // If small, this is # elts allocated consequtively
   unsigned NumElements;
+  unsigned NumTombstones;
   void *SmallArray[1];  // Must be last ivar.
 public:
   SmallPtrSetImpl(unsigned SmallSize) {
@@ -82,6 +83,7 @@
     // Fill the array with empty markers.
     memset(CurArray, -1, CurArraySize*sizeof(void*));
     NumElements = 0;
+    NumTombstones = 0;
   }
   
   /// insert - This returns true if the pointer was new to the set, false if it



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to