mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-17 05:25:47 +00:00
remove support for stringmap visitors now that iterators exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,9 +15,6 @@
|
||||
#include <cassert>
|
||||
using namespace llvm;
|
||||
|
||||
StringMapVisitor::~StringMapVisitor() {
|
||||
}
|
||||
|
||||
StringMapImpl::StringMapImpl(unsigned InitSize, unsigned itemSize) {
|
||||
assert((InitSize & (InitSize-1)) == 0 &&
|
||||
"Init Size must be a power of 2 or zero!");
|
||||
@@ -133,13 +130,3 @@ void StringMapImpl::RehashTable() {
|
||||
TheTable = NewTableArray;
|
||||
NumBuckets = NewSize;
|
||||
}
|
||||
|
||||
|
||||
/// VisitEntries - This method walks through all of the items,
|
||||
/// invoking Visitor.Visit for each of them.
|
||||
void StringMapImpl::VisitEntries(const StringMapVisitor &Visitor) const {
|
||||
for (ItemBucket *IB = TheTable, *E = TheTable+NumBuckets; IB != E; ++IB) {
|
||||
if (StringMapEntryBase *Id = IB->Item)
|
||||
Visitor.Visit((char*)Id + ItemSize, Id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user