[llvm-commits] CVS: llvm/include/llvm/Analysis/DSNode.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 1 23:35:01 PDT 2003
Changes in directory llvm/include/llvm/Analysis:
DSNode.h updated: 1.28 -> 1.29
---
Log message:
Disable the parent graph code when not compiled in DEBUG mode
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.28 llvm/include/llvm/Analysis/DSNode.h:1.29
--- llvm/include/llvm/Analysis/DSNode.h:1.28 Sat Jun 28 16:56:42 2003
+++ llvm/include/llvm/Analysis/DSNode.h Tue Jul 1 23:33:55 2003
@@ -9,6 +9,10 @@
#include "llvm/Analysis/DSSupport.h"
+#ifndef NDEBUG
+#define INCLUDE_PARENT_GRAPH 1
+#endif
+
template<typename BaseType>
class DSNodeIterator; // Data structure graph traversal iterator
@@ -37,9 +41,11 @@
///
unsigned Size;
+#ifdef INCLUDE_PARENT_GRAPH
/// ParentGraph - The graph this node is currently embedded into.
///
DSGraph *ParentGraph;
+#endif
/// Ty - Keep track of the current outer most type of this object, in addition
/// to whether or not it has been indexed like an array or not. If the
@@ -124,9 +130,10 @@
/// return the number of nodes forwarding over the node!
unsigned getNumReferrers() const { return NumReferrers; }
+#ifdef INCLUDE_PARENT_GRAPH
DSGraph *getParentGraph() const { return ParentGraph; }
void setParentGraph(DSGraph *G) { ParentGraph = G; }
-
+#endif
/// getForwardNode - This method returns the node that this node is forwarded
/// to, if any.
More information about the llvm-commits
mailing list