[llvm-commits] CVS: llvm/include/llvm/ADT/SmallPtrSet.h

Chris Lattner sabre at nondot.org
Sat Jan 27 00:19:19 PST 2007



Changes in directory llvm/include/llvm/ADT:

SmallPtrSet.h updated: 1.4 -> 1.5
---
Log message:

add some missing API


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

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


Index: llvm/include/llvm/ADT/SmallPtrSet.h
diff -u llvm/include/llvm/ADT/SmallPtrSet.h:1.4 llvm/include/llvm/ADT/SmallPtrSet.h:1.5
--- llvm/include/llvm/ADT/SmallPtrSet.h:1.4	Sat Jan 27 01:59:10 2007
+++ llvm/include/llvm/ADT/SmallPtrSet.h	Sat Jan 27 02:19:03 2007
@@ -67,6 +67,9 @@
       delete[] CurArray;
   }
   
+  bool empty() const { return size() == 0; }
+  unsigned size() const { return NumElements; }
+  
   static void *getTombstoneMarker() { return reinterpret_cast<void*>(-2); }
   static void *getEmptyMarker() {
     // Note that -1 is chosen to make clear() efficiently implementable with






More information about the llvm-commits mailing list