Loop passes are set up to accept pointer.

llvm-svn: 34527
This commit is contained in:
Devang Patel 2007-02-23 17:53:17 +00:00
parent bdc95679a3
commit 06b8983669
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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)