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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits