[PATCH] D35419: [CodeGen] Add begin-end iterators to MachineInstr

Javed Absar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 06:16:33 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308173: [CodeGen] Add begin-end iterators to MachineInstr (authored by javed.absar).

Changed prior to commit:
  https://reviews.llvm.org/D35419?vs=106760&id=106860#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35419

Files:
  llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp


Index: llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
+++ llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
@@ -153,9 +153,7 @@
     break;
   }
 
-  for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
-    const MachineOperand &MO = MI->getOperand(i);
-
+  for (const MachineOperand &MO : MI->operands()) {
     MCOperand MCOp;
     if (AP.lowerOperand(MO, MCOp)) {
       if (MCOp.isImm() && EncodeImms) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35419.106860.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/820e4bc1/attachment.bin>


More information about the llvm-commits mailing list