Convert a bunch of loops to foreach. NFC.

This uses the new SDNode::op_values() iterator range committed in r240805.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Pete Cooper
2015-06-26 19:18:49 +00:00
parent 226505c0a1
commit e0e37a2382
4 changed files with 19 additions and 22 deletions

View File

@ -591,7 +591,7 @@ public:
const SDValue &operator*() const { return I->get(); }
};
iterator_range<value_op_iterator> op_values() {
iterator_range<value_op_iterator> op_values() const {
return iterator_range<value_op_iterator>(value_op_iterator(op_begin()),
value_op_iterator(op_end()));
}