summaryrefslogtreecommitdiff
path: root/src/expr/attribute_internals.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-05-01 14:27:41 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-05-01 17:08:08 -0400
commit9427bfc0cef9b62146f1b6cff01a8103df97103f (patch)
tree9a6556092fc3a2633b6a9af72b871185f03613da /src/expr/attribute_internals.h
parent1ae217df1496f105db7d08859e8df2931d8f71dc (diff)
Comment out some debug-related things in attribute code, no longer needed
Diffstat (limited to 'src/expr/attribute_internals.h')
-rw-r--r--src/expr/attribute_internals.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/expr/attribute_internals.h b/src/expr/attribute_internals.h
index d7a61e32c..4893075c3 100644
--- a/src/expr/attribute_internals.h
+++ b/src/expr/attribute_internals.h
@@ -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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback