aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-30 05:17:30 +0000
committerChris Lattner <sabre@nondot.org>2003-10-30 05:17:30 +0000
commit14fffaf6c1c6e62897dd8cd0ec90ab196faec764 (patch)
treed6ddd80e9414598e05ea4ac73611ceafa6567a43 /include/llvm
parentc7f1cfb1fde6adbab498b8c227c101edbb72ceeb (diff)
When someone includes CallGraph.h, make sure that they link in CallGraph.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/CallGraph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index f562a51db3..3a51b05655 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -151,6 +151,8 @@ public:
///
void print(std::ostream &o, const Module *M) const;
+ // stub - dummy function, just ignore it
+ static void stub();
private:
//===---------------------------------------------------------------------
// Implementation of CallGraph construction
@@ -282,4 +284,8 @@ template<> struct GraphTraits<const CallGraph*> :
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