Use schedulePass() instead of assignPassManager() to add new LPPassManager.
[oota-llvm.git] / include / llvm / Analysis / LoopPass.h
index 108e8b7a6e162cad072c39a3e9a053bcdea53a25..07b9c572ce0baade1cbd80c3cabe3ae7aa156812 100644 (file)
@@ -69,12 +69,8 @@ public:
   bool runOnFunction(Function &F);
 
   /// Pass Manager itself does not invalidate any analysis info.
-  void getAnalysisUsage(AnalysisUsage &Info) const {
-    // LPPassManager needs LoopInfo. In the long term LoopInfo class will 
-    // be consumed by LPPassManager.
-    Info.addRequired<LoopInfo>();
-    Info.setPreservesAll();
-  }
+  // LPPassManager needs LoopInfo. 
+  void getAnalysisUsage(AnalysisUsage &Info) const; 
   
   virtual const char *getPassName() const {
     return "Loop Pass Manager";