summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 07:02:51 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 07:02:51 +0000
commit5861659a1e1cc5131bfe67509df8b7207ed5e6fc (patch)
tree66c1fe95eae4527ab667a8898c73d0cea81de1c3 /llvm/lib/Analysis/IPA/CallGraph.cpp
parentcd8f67a1060c0ab57c9f6d6e42661827bddc1313 (diff)
downloadbcm5719-llvm-5861659a1e1cc5131bfe67509df8b7207ed5e6fc.tar.gz
bcm5719-llvm-5861659a1e1cc5131bfe67509df8b7207ed5e6fc.zip
Change from using a stub function to a stub variable for passing to the
IncludeFile hack to ensure linkage of analysis passes. This works around some -pedantic warnings about assigning an object to a function. llvm-svn: 28621
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 9089afe1a97..71b303beca9 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -258,7 +258,7 @@ CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) {
-void CallGraph::stub() {}
+int CallGraph::stub; // to ensure linkage of this file.
void CallGraphNode::print(std::ostream &OS) const {
if (Function *F = getFunction())
OpenPOWER on IntegriCloud