summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9521fec8cff196d0273cce085a1baab3c221b7b7 (patch)
tree3fa9c3bd10ccda7b41a0e4b169e2d693150a4b08 /llvm/lib/Support/StringMap.cpp
parente15605ccbf838770a495652215bfc3068b4b8508 (diff)
downloadbcm5719-llvm-9521fec8cff196d0273cce085a1baab3c221b7b7.tar.gz
bcm5719-llvm-9521fec8cff196d0273cce085a1baab3c221b7b7.zip
remove support for stringmap visitors now that iterators exist.
llvm-svn: 34180
Diffstat (limited to 'llvm/lib/Support/StringMap.cpp')
-rw-r--r--llvm/lib/Support/StringMap.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/StringMap.cpp b/llvm/lib/Support/StringMap.cpp
index d56d1da6647..5a3896424e7 100644
--- a/llvm/lib/Support/StringMap.cpp
+++ b/llvm/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);
- }
-}
OpenPOWER on IntegriCloud