Comment out some debug-related things in attribute code, no longer needed
authorMorgan Deters <mdeters@cs.nyu.edu>
Wed, 1 May 2013 18:27:41 +0000 (14:27 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Wed, 1 May 2013 21:08:08 +0000 (17:08 -0400)
src/expr/attribute.h
src/expr/attribute_internals.h

index b155b3a1c23fd801cd8fa3f2d476a502b4f95702..70f04be851f9e813d26a8d95951145dedd20a4dc 100644 (file)
@@ -570,9 +570,11 @@ inline void AttributeManager::deleteAllFromTable(AttrHash<T>& table) {
 
     while (it != it_end){
       uint64_t id = (*it).first.first;
+      /*
       Debug("attrgc") << "id " << id
                       << " node_value: " << ((*it).first.second)
                       << std::endl;
+      */
       if(traits_t::cleanup[id] != NULL) {
         traits_t::cleanup[id]((*it).second);
       }
index d7a61e32c551020f01b238c245eb5f48c086d0ad..4893075c323e9ede60de3c0a03e944ac614b59a4 100644 (file)
@@ -294,11 +294,13 @@ public:
     if(i == super::end()) {
       return BitIterator();
     }
+    /*
     Debug.printf("boolattr",
                  "underlying word at 0x%p looks like 0x%016llx, bit is %u\n",
                  &(*i).second,
                  (unsigned long long)((*i).second),
                  unsigned(k.first));
+    */
     return BitIterator(*i, k.first);
   }
 
@@ -316,11 +318,13 @@ public:
     if(i == super::end()) {
       return ConstBitIterator();
     }
+    /*
     Debug.printf("boolattr",
                  "underlying word at 0x%p looks like 0x%016llx, bit is %u\n",
                  &(*i).second,
                  (unsigned long long)((*i).second),
                  unsigned(k.first));
+    */
     return ConstBitIterator(*i, k.first);
   }
 
@@ -409,9 +413,11 @@ class CDAttrHash<bool> :
       d_key(key),
       d_word(word),
       d_bit(bit) {
+      /*
       Debug.printf("cdboolattr",
                    "CDAttrHash<bool>::BitAccessor(%p, %p, %016llx, %u)\n",
                    &map, key, (unsigned long long) word, bit);
+      */
     }
 
     BitAccessor& operator=(bool b) {
@@ -419,25 +425,31 @@ class CDAttrHash<bool> :
         // set the bit
         d_word |= (1 << d_bit);
         d_map.insert(d_key, d_word);
+        /*
         Debug.printf("cdboolattr",
                      "CDAttrHash<bool>::BitAccessor::set(%p, %p, %016llx, %u)\n",
                      &d_map, d_key, (unsigned long long) d_word, d_bit);
+        */
       } else {
         // clear the bit
         d_word &= ~(1 << d_bit);
         d_map.insert(d_key, d_word);
+        /*
         Debug.printf("cdboolattr",
                      "CDAttrHash<bool>::BitAccessor::clr(%p, %p, %016llx, %u)\n",
                      &d_map, d_key, (unsigned long long) d_word, d_bit);
+        */
       }
 
       return *this;
     }
 
     operator bool() const {
+      /*
       Debug.printf("cdboolattr",
                    "CDAttrHash<bool>::BitAccessor::toBool(%p, %p, %016llx, %u)\n",
                    &d_map, d_key, (unsigned long long) d_word, d_bit);
+      */
       return (d_word & (1 << d_bit)) ? true : false;
     }
   };/* class CDAttrHash<bool>::BitAccessor */
@@ -503,10 +515,12 @@ public:
     if(i == super::end()) {
       return ConstBitIterator();
     }
+    /*
     Debug.printf("cdboolattr",
                  "underlying word at address looks like 0x%016llx, bit is %u\n",
                  (unsigned long long)((*i).second),
                  unsigned(k.first));
+    */
     return ConstBitIterator(*i, k.first);
   }