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 | 98eabe2478b82f5118ae74c2ed96b1abd4b94589 (patch) | |
tree | 9f008e9db0145e6432da03db24041a20d493bde3 /lib/Support | |
parent | 59b4b1040ecf1055854d86693a3674814510cf27 (diff) | |
download | external_llvm-98eabe2478b82f5118ae74c2ed96b1abd4b94589.zip external_llvm-98eabe2478b82f5118ae74c2ed96b1abd4b94589.tar.gz external_llvm-98eabe2478b82f5118ae74c2ed96b1abd4b94589.tar.bz2 |
make smallptrset more const and type correct, which caught a few
minor bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/SmallPtrSet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/SmallPtrSet.cpp b/lib/Support/SmallPtrSet.cpp index eac2909..7aad3ee 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/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; |