mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
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:
parent
403c45dfcc
commit
4b2646326b
@ -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