diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-06 22:12:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-06 22:12:43 +0000 |
commit | 581f006f5dea030c96a8289e4c32bd884cea5b51 (patch) | |
tree | 9dd821ad66710e86c82fbdd7a20a0c8efd4e534b /llvm/lib/Support/SmallPtrSet.cpp | |
parent | ccfc028283a4c85279c703fa7c259ce85775d73f (diff) | |
download | bcm5719-llvm-581f006f5dea030c96a8289e4c32bd884cea5b51.tar.gz bcm5719-llvm-581f006f5dea030c96a8289e4c32bd884cea5b51.zip |
make smallptrset more const and type correct, which caught a few
minor bugs.
llvm-svn: 43782
Diffstat (limited to 'llvm/lib/Support/SmallPtrSet.cpp')
-rw-r--r-- | llvm/lib/Support/SmallPtrSet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/SmallPtrSet.cpp b/llvm/lib/Support/SmallPtrSet.cpp index eac2909a838..7aad3eeec7a 100644 --- a/llvm/lib/Support/SmallPtrSet.cpp +++ b/llvm/lib/Support/SmallPtrSet.cpp @@ -36,7 +36,7 @@ void SmallPtrSetImpl::shrink_and_clear() { CurArray[CurArraySize] = 0; } -bool SmallPtrSetImpl::insert(const void * Ptr) { +bool SmallPtrSetImpl::insert_imp(const void * Ptr) { if (isSmall()) { // Check to see if it is already in the set. for (const void **APtr = SmallArray, **E = SmallArray+NumElements; @@ -69,7 +69,7 @@ bool SmallPtrSetImpl::insert(const void * Ptr) { return true; } -bool SmallPtrSetImpl::erase(const void * Ptr) { +bool SmallPtrSetImpl::erase_imp(const void * Ptr) { if (isSmall()) { // Check to see if it is in the set. for (const void **APtr = SmallArray, **E = SmallArray+NumElements; |