Changes in directory llvm/lib/Analysis:
AliasAnalysis.cpp updated: 1.26 -> 1.27 BasicAliasAnalysis.cpp updated: 1.79 -> 1.80 LoopInfo.cpp updated: 1.68 -> 1.69 PostDominators.cpp updated: 1.55 -> 1.56 ValueNumbering.cpp updated: 1.17 -> 1.18 --- Log message: 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. --- Diffs of the changes: (+5 -6) AliasAnalysis.cpp | 2 +- BasicAliasAnalysis.cpp | 2 +- LoopInfo.cpp | 2 +- PostDominators.cpp | 3 +-- ValueNumbering.cpp | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) Index: llvm/lib/Analysis/AliasAnalysis.cpp diff -u llvm/lib/Analysis/AliasAnalysis.cpp:1.26 llvm/lib/Analysis/AliasAnalysis.cpp:1.27 --- llvm/lib/Analysis/AliasAnalysis.cpp:1.26 Thu Apr 21 16:04:58 2005 +++ llvm/lib/Analysis/AliasAnalysis.cpp Thu Jun 1 02:02:51 2006 @@ -189,6 +189,6 @@ // being linked into the tool that uses it. // namespace llvm { - extern void BasicAAStub(); + extern int BasicAAStub; } static IncludeFile INCLUDE_BASICAA_CPP((void*)&BasicAAStub); Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.79 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.80 --- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.79 Thu Mar 9 16:31:29 2006 +++ llvm/lib/Analysis/BasicAliasAnalysis.cpp Thu Jun 1 02:02:51 2006 @@ -27,7 +27,7 @@ using namespace llvm; // Make sure that anything that uses AliasAnalysis pulls in this file... -void llvm::BasicAAStub() {} +int llvm::BasicAAStub; namespace { /// NoAA - This class implements the -no-aa pass, which always returns "I Index: llvm/lib/Analysis/LoopInfo.cpp diff -u llvm/lib/Analysis/LoopInfo.cpp:1.68 llvm/lib/Analysis/LoopInfo.cpp:1.69 --- llvm/lib/Analysis/LoopInfo.cpp:1.68 Tue Feb 14 14:14:17 2006 +++ llvm/lib/Analysis/LoopInfo.cpp Thu Jun 1 02:02:51 2006 @@ -86,7 +86,7 @@ //===----------------------------------------------------------------------===// // LoopInfo implementation // -void LoopInfo::stub() {} +int LoopInfo::stub; bool LoopInfo::runOnFunction(Function &) { releaseMemory(); Index: llvm/lib/Analysis/PostDominators.cpp diff -u llvm/lib/Analysis/PostDominators.cpp:1.55 llvm/lib/Analysis/PostDominators.cpp:1.56 --- llvm/lib/Analysis/PostDominators.cpp:1.55 Fri Mar 10 20:20:46 2006 +++ llvm/lib/Analysis/PostDominators.cpp Thu Jun 1 02:02:51 2006 @@ -360,6 +360,5 @@ } // stub - a dummy function to make linking work ok. -void PostDominanceFrontier::stub() { -} +int PostDominanceFrontier::stub; Index: llvm/lib/Analysis/ValueNumbering.cpp diff -u llvm/lib/Analysis/ValueNumbering.cpp:1.17 llvm/lib/Analysis/ValueNumbering.cpp:1.18 --- llvm/lib/Analysis/ValueNumbering.cpp:1.17 Fri Apr 14 00:10:20 2006 +++ llvm/lib/Analysis/ValueNumbering.cpp Thu Jun 1 02:02:51 2006 @@ -239,4 +239,4 @@ } -void llvm::BasicValueNumberingStub() { } +int llvm::BasicValueNumberingStub; // to ensure linkage of this file _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits