summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAnand Shukla <ashukla@cs.uiuc.edu>2002-08-26 16:45:19 +0000
committerAnand Shukla <ashukla@cs.uiuc.edu>2002-08-26 16:45:19 +0000
commite87291ef8337a077b0bbd524ed33658ff08a6fc5 (patch)
treef28ee09b7a7ffdda9ab07a747aecec79c03e11d6 /llvm
parentb3a296fc6a69ac2416eb0aa891a6d142f76a1ec3 (diff)
downloadbcm5719-llvm-e87291ef8337a077b0bbd524ed33658ff08a6fc5.tar.gz
bcm5719-llvm-e87291ef8337a077b0bbd524ed33658ff08a6fc5.zip
Changed so it gets linked properly
llvm-svn: 3508
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/LoopInfo.h6
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h
index be85e88b46b..73f9719c205 100644
--- a/llvm/include/llvm/Analysis/LoopInfo.h
+++ b/llvm/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/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index a2f2ccec5dc..fbd06c1c090 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud