diff options
author | Devang Patel <dpatel@apple.com> | 2007-02-23 17:53:17 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-02-23 17:53:17 +0000 |
commit | 4b2646326ba6f14addf5498cbf6aefd273a4556e (patch) | |
tree | f6735e2f97169506d86e57a76087af5fbd43bb25 | |
parent | 403c45dfcc74585b02339b5f55f739672e3d141a (diff) |
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
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 2 | ||||
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 2fd14f2dad..7b878abadf 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -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; } diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 425e46e6e0..26e5061564 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -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) |