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

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 20 16:52:03 PDT 2004


Changes in directory llvm/include/llvm/Analysis:

CallGraph.h updated: 1.34 -> 1.35

---
Log message:

Allow getting the module from a call graph


---
Diffs of the changes:  (+4 -0)

Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.34 llvm/include/llvm/Analysis/CallGraph.h:1.35
--- llvm/include/llvm/Analysis/CallGraph.h:1.34	Mon Apr 12 00:36:22 2004
+++ llvm/include/llvm/Analysis/CallGraph.h	Tue Apr 20 16:52:12 2004
@@ -100,6 +100,10 @@
         CallGraphNode *getRoot()       { return Root; }
   const CallGraphNode *getRoot() const { return Root; }
 
+  /// getModule - Return the module the call graph corresponds to.
+  ///
+  Module &getModule() const { return *Mod; }
+
   inline       iterator begin()       { return FunctionMap.begin(); }
   inline       iterator end()         { return FunctionMap.end();   }
   inline const_iterator begin() const { return FunctionMap.begin(); }





More information about the llvm-commits mailing list