Loop passes are set up to accept pointer.
authorDevang Patel <dpatel@apple.com>
Fri, 23 Feb 2007 17:53:17 +0000 (17:53 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 23 Feb 2007 17:53:17 +0000 (17:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34527 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 2fd14f2dad4a1ecf26bb34256c4e7e73c6257af3..7b878abadf174c60b432199cb8ca142380e26156 100644 (file)
@@ -32,7 +32,7 @@ class LoopPass : public Pass {
  public:
   // runOnLoop - THis method should be implemented by the subclass to perform
   // whatever action is necessary for the specfied Loop. 
-  virtual bool runOnLoop (Loop &L, LPPassManager &LPM) = 0;
+  virtual bool runOnLoop (Loop *L, LPPassManager &LPM) = 0;
   virtual bool runOnFunctionBody (Function &F, LPPassManager &LPM) { 
     return false; 
   }
index 425e46e6e0b736f81a7f3db7360ffb074b7d3d13..26e50615640ad6059e33d6c72789beba6f0431c2 100644 (file)
@@ -116,7 +116,7 @@ bool LPPassManager::runOnFunction(Function &F) {
       StartPassTimer(P);
       LoopPass *LP = dynamic_cast<LoopPass *>(P);
       assert (LP && "Invalid LPPassManager member");
-      LP->runOnLoop(*L, *this);
+      LP->runOnLoop(L, *this);
       StopPassTimer(P);
 
       if (Changed)