Rename NewNode flag to HeapNode
authorChris Lattner <sabre@nondot.org>
Sun, 3 Nov 2002 21:24:04 +0000 (21:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 Nov 2002 21:24:04 +0000 (21:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4515 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSNode.h
include/llvm/Analysis/DataStructure/DSNode.h
lib/Analysis/DataStructure/DataStructure.cpp
lib/Analysis/DataStructure/Local.cpp
lib/Analysis/DataStructure/Printer.cpp

index 12d2cbc2bd41025f83a6fbef2c1b12a05b4a7c26..367c377a34a3dda5fc94b5dc239542a716029539 100644 (file)
@@ -63,7 +63,7 @@ public:
   enum NodeTy {
     ShadowNode  = 0,        // Nothing is known about this node...
     AllocaNode  = 1 << 0,   // This node was allocated with alloca
-    NewNode     = 1 << 1,   // This node was allocated with malloc
+    HeapNode    = 1 << 1,   // This node was allocated with malloc
     GlobalNode  = 1 << 2,   // This node was allocated by a global var decl
     UnknownNode = 1 << 3,   // This node points to unknown allocated memory 
     Incomplete  = 1 << 4,   // This node may not be complete
index 12d2cbc2bd41025f83a6fbef2c1b12a05b4a7c26..367c377a34a3dda5fc94b5dc239542a716029539 100644 (file)
@@ -63,7 +63,7 @@ public:
   enum NodeTy {
     ShadowNode  = 0,        // Nothing is known about this node...
     AllocaNode  = 1 << 0,   // This node was allocated with alloca
-    NewNode     = 1 << 1,   // This node was allocated with malloc
+    HeapNode    = 1 << 1,   // This node was allocated with malloc
     GlobalNode  = 1 << 2,   // This node was allocated by a global var decl
     UnknownNode = 1 << 3,   // This node points to unknown allocated memory 
     Incomplete  = 1 << 4,   // This node may not be complete
index 2aadc000f6c8bfb2e68c5a6bd1cc142cbc26cfe5..ac65d2ad76272d01c723d4a9dad4f2eb29fa0c53 100644 (file)
@@ -1003,10 +1003,11 @@ void GlobalDSGraph::removeReference(const DSGraph* referrer) {
   }
 }
 
+#if 0
 // Bits used in the next function
-static const char ExternalTypeBits = DSNode::GlobalNode | DSNode::NewNode;
+static const char ExternalTypeBits = DSNode::GlobalNode | DSNode::HeapNode;
+
 
-#if 0
 // GlobalDSGraph::cloneNodeInto - Clone a global node and all its externally
 // visible target links (and recursively their such links) into this graph.
 // NodeCache maps the node being cloned to its clone in the Globals graph,
index 0d6046d13d3f5ed9c0d94ef49e0f3447b1f63efb..e45cdcbed8135f45b3669d953aaf8dcd8cb040de 100644 (file)
@@ -84,7 +84,7 @@ namespace {
   private:
     // Visitor functions, used to handle each instruction type we encounter...
     friend class InstVisitor<GraphBuilder>;
-    void visitMallocInst(MallocInst &MI) { handleAlloc(MI, DSNode::NewNode); }
+    void visitMallocInst(MallocInst &MI) { handleAlloc(MI, DSNode::HeapNode); }
     void visitAllocaInst(AllocaInst &AI) { handleAlloc(AI, DSNode::AllocaNode);}
     void handleAlloc(AllocationInst &AI, DSNode::NodeTy NT);
 
index a58f7ef4eee736eea2979b55699c3f4deb1bc597..8514d53faf3f153cddc36eef46631a994d2b69e9 100644 (file)
@@ -37,7 +37,7 @@ static string getCaption(const DSNode *N, const DSGraph *G) {
   }
 
   if (N->NodeType & DSNode::AllocaNode ) OS << "S";
-  if (N->NodeType & DSNode::NewNode    ) OS << "H";
+  if (N->NodeType & DSNode::HeapNode   ) OS << "H";
   if (N->NodeType & DSNode::GlobalNode ) OS << "G";
   if (N->NodeType & DSNode::UnknownNode) OS << "U";
   if (N->NodeType & DSNode::Incomplete ) OS << "I";