mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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:
parent
daee2b492f
commit
73440f6a15
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user