From e0b6b78e095f7dea9589e8df5ec4521e346ad005 Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Mon, 26 Aug 2002 16:45:19 +0000 Subject: [PATCH] Changed so it gets linked properly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3508 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LoopInfo.h | 6 ++++++ lib/Analysis/LoopInfo.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index be85e88b46b..73f9719c205 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -110,9 +110,15 @@ public: // virtual void getAnalysisUsage(AnalysisUsage &AU) const; + static void stub(); // Noop private: void Calculate(const DominatorSet &DS); Loop *ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS); }; + +// Make sure that any clients of this file link in PostDominators.cpp +static IncludeFile +LOOP_INFO_INCLUDE_FILE((void*)&LoopInfo::stub); + #endif diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index a2f2ccec5dc..fbd06c1c090 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -40,6 +40,7 @@ void Loop::print(std::ostream &OS) const { //===----------------------------------------------------------------------===// // LoopInfo implementation // +void LoopInfo::stub() {} bool LoopInfo::runOnFunction(Function &) { releaseMemory();