Disable the parent graph code when not compiled in DEBUG mode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-07-02 04:33:55 +00:00
parent daee2b492f
commit 73440f6a15
2 changed files with 16 additions and 2 deletions

View File

@ -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 @@ class DSNode {
///
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 @@ public:
/// 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.

View File

@ -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 @@ class DSNode {
///
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 @@ public:
/// 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.