Add loop info verification mechanism.
[oota-llvm.git] / include / llvm / Analysis / LoopPass.h
index 24e61435ff8a6550bfbf9143f8c4b08de32ad81a..7a820ccc5dac0015d3a9e650ffd1e9f614f79f47 100644 (file)
@@ -68,7 +68,7 @@ class LoopPass : public Pass {
 class LPPassManager : public FunctionPass, public PMDataManager {
 
 public:
-  static const int ID;
+  static char ID;
   LPPassManager(int Depth);
 
   /// run - Execute all of the passes scheduled for execution.  Keep track of
@@ -114,6 +114,11 @@ public:
   // queue. This allows LoopPass to change loop nest for the loop. This
   // utility may send LPPassManager into infinite loops so use caution.
   void redoLoop(Loop *L);
+
+private:
+  /// verifyLoopInfo - Verify loop nest.
+  void verifyLoopInfo();
+
 private:
   std::deque<Loop *> LQ;
   bool skipThisLoop;