Changed so it gets linked properly
authorAnand Shukla <ashukla@cs.uiuc.edu>
Mon, 26 Aug 2002 16:45:19 +0000 (16:45 +0000)
committerAnand Shukla <ashukla@cs.uiuc.edu>
Mon, 26 Aug 2002 16:45:19 +0000 (16:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3508 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h
lib/Analysis/LoopInfo.cpp

index be85e88b46b305ad852800bd079347004e1371f6..73f9719c2055b651025ff182898bb141990cf70d 100644 (file)
@@ -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
index a2f2ccec5dc0f050e93246951d1355f8c2249628..fbd06c1c090191e127a2b5d268aa6b6ba546b469 100644 (file)
@@ -40,6 +40,7 @@ void Loop::print(std::ostream &OS) const {
 //===----------------------------------------------------------------------===//
 // LoopInfo implementation
 //
+void LoopInfo::stub() {}
 
 bool LoopInfo::runOnFunction(Function &) {
   releaseMemory();