OSDN Git Service

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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315938 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineRegisterInfo.h

index 3f8dcfe..e761ef2 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;