mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-26 16:05:54 +00:00
Use a range-based for loop. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6cda0e9bc
commit
183d4c239a
@ -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…
x
Reference in New Issue
Block a user