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/LoopInfo.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/LoopInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index 2860aa492ce..f2ef17682fc 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/lib/Analysis/LoopInfo.cpp @@ -86,7 +86,7 @@ void Loop::dump() const { //===----------------------------------------------------------------------===// // LoopInfo implementation // -void LoopInfo::stub() {} +int LoopInfo::stub; bool LoopInfo::runOnFunction(Function &) { releaseMemory(); |