summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/PostDominators.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/PostDominators.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/PostDominators.cpp')
-rw-r--r--llvm/lib/Analysis/PostDominators.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/PostDominators.cpp b/llvm/lib/Analysis/PostDominators.cpp
index b8b173e1ab4..611ea60a672 100644
--- a/llvm/lib/Analysis/PostDominators.cpp
+++ b/llvm/lib/Analysis/PostDominators.cpp
@@ -360,6 +360,5 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
}
// stub - a dummy function to make linking work ok.
-void PostDominanceFrontier::stub() {
-}
+int PostDominanceFrontier::stub;
OpenPOWER on IntegriCloud