From 581f006f5dea030c96a8289e4c32bd884cea5b51 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Nov 2007 22:12:43 +0000 Subject: make smallptrset more const and type correct, which caught a few minor bugs. llvm-svn: 43782 --- llvm/lib/Support/SmallPtrSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/SmallPtrSet.cpp') diff --git a/llvm/lib/Support/SmallPtrSet.cpp b/llvm/lib/Support/SmallPtrSet.cpp index eac2909..7aad3ee 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; -- cgit v1.1