diff options
-rw-r--r-- | include/llvm/ADT/SmallPtrSet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index b9f7b1fc26..134a7da96c 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -67,6 +67,9 @@ public: 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 |