[llvm] r204074 - Really REALLY finish adding const to the MachineRegisterInfo iterator range methods.

Owen Anderson resistor at mac.com
Mon Mar 17 12:34:51 PDT 2014


Author: resistor
Date: Mon Mar 17 14:34:51 2014
New Revision: 204074

URL: http://llvm.org/viewvc/llvm-project?rev=204074&view=rev
Log:
Really REALLY finish adding const to the MachineRegisterInfo iterator range methods.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h?rev=204074&r1=204073&r2=204074&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h Mon Mar 17 14:34:51 2014
@@ -238,7 +238,8 @@ public:
   }
   static reg_instr_iterator reg_instr_end() { return reg_instr_iterator(0); }
 
-  inline iterator_range<reg_instr_iterator>  reg_instructions(unsigned Reg) {
+  inline iterator_range<reg_instr_iterator>
+  reg_instructions(unsigned Reg) const {
     return iterator_range<reg_instr_iterator>(reg_instr_begin(Reg),
                                               reg_instr_end());
   }
@@ -252,7 +253,7 @@ public:
   }
   static reg_bundle_iterator reg_bundle_end() { return reg_bundle_iterator(0); }
 
-  inline iterator_range<reg_bundle_iterator>  reg_bundles(unsigned Reg) {
+  inline iterator_range<reg_bundle_iterator> reg_bundles(unsigned Reg) const {
     return iterator_range<reg_bundle_iterator>(reg_bundle_begin(Reg),
                                                reg_bundle_end());
   }
@@ -270,7 +271,8 @@ public:
   }
   static reg_nodbg_iterator reg_nodbg_end() { return reg_nodbg_iterator(0); }
 
-  inline iterator_range<reg_nodbg_iterator>  reg_nodbg_operands(unsigned Reg) {
+  inline iterator_range<reg_nodbg_iterator>
+  reg_nodbg_operands(unsigned Reg) const {
     return iterator_range<reg_nodbg_iterator>(reg_nodbg_begin(Reg),
                                               reg_nodbg_end());
   }
@@ -287,8 +289,8 @@ public:
     return reg_instr_nodbg_iterator(0);
   }
 
-  inline iterator_range<reg_instr_nodbg_iterator> 
-  reg_nodbg_instructions(unsigned Reg) {
+  inline iterator_range<reg_instr_nodbg_iterator>
+  reg_nodbg_instructions(unsigned Reg) const {
     return iterator_range<reg_instr_nodbg_iterator>(reg_instr_nodbg_begin(Reg),
                                                     reg_instr_nodbg_end());
   }
@@ -306,7 +308,7 @@ public:
   }
 
   inline iterator_range<reg_bundle_nodbg_iterator> 
-  reg_nodbg_bundles(unsigned Reg) {
+  reg_nodbg_bundles(unsigned Reg) const {
     return iterator_range<reg_bundle_nodbg_iterator>(reg_bundle_nodbg_begin(Reg),
                                                      reg_bundle_nodbg_end());
   }





More information about the llvm-commits mailing list