add some missing API

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-01-27 08:19:03 +00:00
parent a5b4760cbd
commit 894d264f3e

View File

@ -67,6 +67,9 @@ public:
delete[] CurArray; delete[] CurArray;
} }
bool empty() const { return size() == 0; }
unsigned size() const { return NumElements; }
static void *getTombstoneMarker() { return reinterpret_cast<void*>(-2); } static void *getTombstoneMarker() { return reinterpret_cast<void*>(-2); }
static void *getEmptyMarker() { static void *getEmptyMarker() {
// Note that -1 is chosen to make clear() efficiently implementable with // Note that -1 is chosen to make clear() efficiently implementable with