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

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 29 23:18:01 PST 2003


Changes in directory llvm/include/llvm/Analysis:

CallGraph.h updated: 1.31 -> 1.32

---
Log message:

When someone includes CallGraph.h, make sure that they link in CallGraph.cpp


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

Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.31 llvm/include/llvm/Analysis/CallGraph.h:1.32
--- llvm/include/llvm/Analysis/CallGraph.h:1.31	Mon Oct 20 15:19:17 2003
+++ llvm/include/llvm/Analysis/CallGraph.h	Wed Oct 29 23:16:55 2003
@@ -151,6 +151,8 @@
   ///
   void print(std::ostream &o, const Module *M) const;
 
+  // stub - dummy function, just ignore it
+  static void stub();
 private:
   //===---------------------------------------------------------------------
   // Implementation of CallGraph construction
@@ -281,5 +283,9 @@
   static nodes_iterator nodes_begin(const CallGraph *CG) { return CG->begin(); }
   static nodes_iterator nodes_end  (const CallGraph *CG) { return CG->end(); }
 };
+
+// Make sure that any clients of this file link in PostDominators.cpp
+static IncludeFile
+CALLGRAPH_INCLUDE_FILE((void*)&CallGraph::stub);
 
 #endif





More information about the llvm-commits mailing list