[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 10 00:54:01 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DataStructure.h updated: 1.55 -> 1.56

---
Log message:

Add hasGraph() methods to all of the passes for the printer





---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DataStructure.h
diff -u llvm/include/llvm/Analysis/DataStructure.h:1.55 llvm/include/llvm/Analysis/DataStructure.h:1.56
--- llvm/include/llvm/Analysis/DataStructure.h:1.55	Sat Nov  9 15:12:07 2002
+++ llvm/include/llvm/Analysis/DataStructure.h	Sun Nov 10 00:53:19 2002
@@ -39,6 +39,10 @@
 
   virtual bool run(Module &M);
 
+  bool hasGraph(const Function &F) const {
+    return DSInfo.find(&F) != DSInfo.end();
+  }
+
   // getDSGraph - Return the data structure graph for the specified function.
   DSGraph &getDSGraph(const Function &F) const {
     std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
@@ -74,6 +78,10 @@
 
   virtual bool run(Module &M);
 
+  bool hasGraph(const Function &F) const {
+    return DSInfo.find(&F) != DSInfo.end();
+  }
+
   // getDSGraph - Return the data structure graph for the specified function.
   DSGraph &getDSGraph(const Function &F) const {
     std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
@@ -94,7 +102,7 @@
     AU.addRequired<LocalDataStructures>();
   }
 private:
-  DSGraph &calculateGraph(Function &F);
+  DSGraph &calculateGraph(Function &F, unsigned Indent);
 };
 
 
@@ -111,6 +119,10 @@
   ~TDDataStructures() { releaseMemory(); }
 
   virtual bool run(Module &M);
+
+  bool hasGraph(const Function &F) const {
+    return DSInfo.find(&F) != DSInfo.end();
+  }
 
   // getDSGraph - Return the data structure graph for the specified function.
   DSGraph &getDSGraph(const Function &F) const {





More information about the llvm-commits mailing list