summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-16 21:19:40 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-16 21:19:40 +0000
commite29e07904ca115c59a6451b92d03535e20349a81 (patch)
tree615e1735a0a2d34b578257c01352f0fc7d39af33
parentd3b231c44d056d6c3ab4920925c63af9e44a21a8 (diff)
downloadbcm5719-llvm-e29e07904ca115c59a6451b92d03535e20349a81.tar.gz
bcm5719-llvm-e29e07904ca115c59a6451b92d03535e20349a81.zip
Replace make_range in MachineRegisterInfo with ArrayRef, NFC
llvm-svn: 315938
-rw-r--r--llvm/include/llvm/CodeGen/MachineRegisterInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
index 3f8dcfe76cc..e761ef2f7c3 100644
--- a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -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;
OpenPOWER on IntegriCloud