aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/StringMap.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-11 08:22:15 +0000
committerChris Lattner <sabre@nondot.org>2007-02-11 08:22:15 +0000
commit360cac8fef34b4671f27ef52674a41e29154ddc7 (patch)
tree5000eda0c387a1ea04c94a66ec8cda9e8f780c71 /lib/Support/StringMap.cpp
parenta86559ec426c643a151aeba1e051e4f878050f95 (diff)
downloadexternal_llvm-360cac8fef34b4671f27ef52674a41e29154ddc7.zip
external_llvm-360cac8fef34b4671f27ef52674a41e29154ddc7.tar.gz
external_llvm-360cac8fef34b4671f27ef52674a41e29154ddc7.tar.bz2
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
Diffstat (limited to 'lib/Support/StringMap.cpp')
-rw-r--r--lib/Support/StringMap.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Support/StringMap.cpp b/lib/Support/StringMap.cpp
index d56d1da..5a38964 100644
--- a/lib/Support/StringMap.cpp
+++ b/lib/Support/StringMap.cpp
@@ -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);
- }
-}