Loop passes are set up to accept pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-02-23 17:53:17 +00:00
parent 403c45dfcc
commit 4b2646326b
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)