1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Use a range-based for loop. NFC.

llvm-svn: 263889
This commit is contained in:
Michael Kuperstein 2016-03-20 00:16:13 +00:00
parent 906e0f5f55
commit 36cf287497

View File

@ -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);
}