From d3ccdfd04d9ec844ccb41375ff2249efa660d94f Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 23 Feb 2007 17:53:17 +0000 Subject: [PATCH] Loop passes are set up to accept pointer. llvm-svn: 34527 --- llvm/include/llvm/Analysis/LoopPass.h | 2 +- llvm/lib/Analysis/LoopPass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Analysis/LoopPass.h b/llvm/include/llvm/Analysis/LoopPass.h index 2fd14f2dad4a..7b878abadf17 100644 --- a/llvm/include/llvm/Analysis/LoopPass.h +++ b/llvm/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/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 425e46e6e0b7..26e50615640a 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -116,7 +116,7 @@ bool LPPassManager::runOnFunction(Function &F) { StartPassTimer(P); LoopPass *LP = dynamic_cast(P); assert (LP && "Invalid LPPassManager member"); - LP->runOnLoop(*L, *this); + LP->runOnLoop(L, *this); StopPassTimer(P); if (Changed)