[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp Local.cpp Printer.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 3 15:25:09 PST 2002


Changes in directory llvm/lib/Analysis/DataStructure:

DataStructure.cpp updated: 1.38 -> 1.39
Local.cpp updated: 1.25 -> 1.26
Printer.cpp updated: 1.30 -> 1.31

---
Log message:

Rename NewNode flag to HeapNode


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.38 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.39
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.38	Fri Nov  1 18:13:20 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp	Sun Nov  3 15:24:04 2002
@@ -1003,10 +1003,11 @@
   }
 }
 
+#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: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.25 llvm/lib/Analysis/DataStructure/Local.cpp:1.26
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.25	Fri Nov  1 18:36:02 2002
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Sun Nov  3 15:24:04 2002
@@ -84,7 +84,7 @@
   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: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.30 llvm/lib/Analysis/DataStructure/Printer.cpp:1.31
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.30	Sun Nov  3 13:46:15 2002
+++ llvm/lib/Analysis/DataStructure/Printer.cpp	Sun Nov  3 15:24:04 2002
@@ -37,7 +37,7 @@
   }
 
   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";





More information about the llvm-commits mailing list