Replace make_range in MachineRegisterInfo with ArrayRef, NFC
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 16 Oct 2017 21:19:40 +0000 (21:19 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 16 Oct 2017 21:19:40 +0000 (21:19 +0000)
llvm-svn: 315938

llvm/include/llvm/CodeGen/MachineRegisterInfo.h

index 3f8dcfe76ccb91c9ca79b84ea3f9161a0d93e859..e761ef2f7c33ebe2c0198bd1d12c65af0f5e0f90 100644 (file)
@@ -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;