mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
Loop passes are set up to accept pointer.
llvm-svn: 34527
This commit is contained in:
parent
bdc95679a3
commit
06b8983669
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user