aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/LoopInfo.h6
-rw-r--r--lib/Analysis/LoopInfo.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index be85e88..73f9719 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 a2f2cce..fbd06c1 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();