Changes in directory llvm/lib/Support:
FoldingSet.cpp updated: 1.13 -> 1.14 --- Log message: Add some debug output. --- Diffs of the changes: (+4 -0) FoldingSet.cpp | 4 ++++ 1 files changed, 4 insertions(+) Index: llvm/lib/Support/FoldingSet.cpp diff -u llvm/lib/Support/FoldingSet.cpp:1.13 llvm/lib/Support/FoldingSet.cpp:1.14 --- llvm/lib/Support/FoldingSet.cpp:1.13 Wed Jan 31 00:04:41 2007 +++ llvm/lib/Support/FoldingSet.cpp Wed Jan 31 15:27:38 2007 @@ -14,8 +14,10 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "foldingset" #include "llvm/ADT/FoldingSet.h" #include "llvm/Support/MathExtras.h" +#include "llvm/Support/Debug.h" #include <cassert> using namespace llvm; @@ -225,6 +227,7 @@ /// FindNodeOrInsertPos. void FoldingSetImpl::InsertNode(Node *N, void *InsertPos) { // Do we need to grow the hashtable? + DEBUG(DOUT << "INSERT: " << N << '\n'); if (NumNodes+1 > NumBuckets*2) { GrowHashTable(); NodeID ID; @@ -255,6 +258,7 @@ // Because each bucket is a circular list, we don't need to compute N's hash // to remove it. Chase around the list until we find the node (or bucket) // which points to N. + DEBUG(DOUT << "REMOVE: " << N << '\n'); void *Ptr = N->getNextInBucket(); if (Ptr == 0) return false; // Not in folding set. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits