[llvm-commits] CVS: llvm/lib/Support/StringMap.cpp

Chris Lattner sabre at nondot.org
Sun Feb 11 00:22:42 PST 2007



Changes in directory llvm/lib/Support:

StringMap.cpp updated: 1.6 -> 1.7
---
Log message:

remove support for stringmap visitors now that iterators exist.


---
Diffs of the changes:  (+0 -13)

 StringMap.cpp |   13 -------------
 1 files changed, 13 deletions(-)


Index: llvm/lib/Support/StringMap.cpp
diff -u llvm/lib/Support/StringMap.cpp:1.6 llvm/lib/Support/StringMap.cpp:1.7
--- llvm/lib/Support/StringMap.cpp:1.6	Sun Feb 11 02:20:35 2007
+++ llvm/lib/Support/StringMap.cpp	Sun Feb 11 02:22:15 2007
@@ -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 @@
   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);
-  }
-}






More information about the llvm-commits mailing list