diff options
author | Michael Kuperstein <michael.kuperstein@gmail.com> | 2016-03-20 00:16:13 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.kuperstein@gmail.com> | 2016-03-20 00:16:13 +0000 |
commit | 048cc3b7a8e5ac8d850b3a186fe2c6f2159f0c7a (patch) | |
tree | 644b5c5251b0043dc7dd7eb9d043a17ba7f4eb1e /llvm/lib | |
parent | cc2f355f71b63f849fbd7cb91b8a09ce27b7b9a1 (diff) | |
download | bcm5719-llvm-048cc3b7a8e5ac8d850b3a186fe2c6f2159f0c7a.tar.gz bcm5719-llvm-048cc3b7a8e5ac8d850b3a186fe2c6f2159f0c7a.zip |
Use a range-based for loop. NFC.
llvm-svn: 263889
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86CallFrameOptimization.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp index c4bf5a410b9..f2405a4bd3f 100644 --- a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp +++ b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp @@ -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); } |