diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:02:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:02:51 +0000 |
commit | 5861659a1e1cc5131bfe67509df8b7207ed5e6fc (patch) | |
tree | 66c1fe95eae4527ab667a8898c73d0cea81de1c3 /llvm/lib/Analysis/IPA/CallGraph.cpp | |
parent | cd8f67a1060c0ab57c9f6d6e42661827bddc1313 (diff) | |
download | bcm5719-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.cpp | 2 |
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()) |