mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Use a range-based for loop. NFC.
llvm-svn: 263889
This commit is contained in:
parent
906e0f5f55
commit
36cf287497
@ -233,11 +233,11 @@ bool X86CallFrameOptimization::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
ContextVector CallSeqVector;
|
||||
|
||||
for (MachineFunction::iterator BB = MF.begin(), E = MF.end(); BB != E; ++BB)
|
||||
for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); ++I)
|
||||
if (I->getOpcode() == FrameSetupOpcode) {
|
||||
for (auto &MBB : MF)
|
||||
for (auto &MI : MBB)
|
||||
if (MI.getOpcode() == FrameSetupOpcode) {
|
||||
CallContext Context;
|
||||
collectCallInfo(MF, *BB, I, Context);
|
||||
collectCallInfo(MF, MBB, MI, Context);
|
||||
CallSeqVector.push_back(Context);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user