[cfe-commits] r49592 - /cfe/trunk/lib/Rewrite/DeltaTree.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 12 15:04:18 PDT 2008
Author: lattner
Date: Sat Apr 12 17:04:18 2008
New Revision: 49592
URL: http://llvm.org/viewvc/llvm-project?rev=49592&view=rev
Log:
final cleanup, the code is now in a reviewable state.
Modified:
cfe/trunk/lib/Rewrite/DeltaTree.cpp
Modified: cfe/trunk/lib/Rewrite/DeltaTree.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/DeltaTree.cpp?rev=49592&r1=49591&r2=49592&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/DeltaTree.cpp (original)
+++ cfe/trunk/lib/Rewrite/DeltaTree.cpp Sat Apr 12 17:04:18 2008
@@ -289,7 +289,9 @@
// DeltaTree Implementation
//===----------------------------------------------------------------------===//
+//#define VERIFY_TREE
+#ifdef VERIFY_TREE
/// VerifyTree - Walk the btree performing assertions on various properties to
/// verify consistency. This is useful for debugging new changes to the tree.
static void VerifyTree(const DeltaTreeNode *N) {
@@ -331,6 +333,7 @@
assert(FullDelta == N->getFullDelta());
}
+#endif // VERIFY_TREE
static DeltaTreeNode *getRoot(void *Root) {
return (DeltaTreeNode*)Root;
@@ -411,6 +414,8 @@
getRoot(Root)->AddDeltaNonFull(FileIndex, Delta);
- //VerifyTree(Root);
+#ifdef VERIFY_TREE
+ VerifyTree(Root);
+#endif
}
More information about the cfe-commits
mailing list