[llvm] r315938 - Replace make_range in MachineRegisterInfo with ArrayRef, NFC

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 14:19:41 PDT 2017


Author: kparzysz
Date: Mon Oct 16 14:19:40 2017
New Revision: 315938

URL: http://llvm.org/viewvc/llvm-project?rev=315938&view=rev
Log:
Replace make_range in MachineRegisterInfo with ArrayRef, NFC

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=315938&r1=315937&r2=315938&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h Mon Oct 16 14:19:40 2017
@@ -841,8 +841,9 @@ public:
   livein_iterator livein_begin() const { return LiveIns.begin(); }
   livein_iterator livein_end()   const { return LiveIns.end(); }
   bool            livein_empty() const { return LiveIns.empty(); }
-  iterator_range<livein_iterator> liveins() const {
-    return make_range(livein_begin(), livein_end());
+
+  ArrayRef<std::pair<unsigned, unsigned>> liveins() const {
+    return LiveIns;
   }
 
   bool isLiveIn(unsigned Reg) const;




More information about the llvm-commits mailing list