Add a const method to iterator over PHI incoming values.

This will be used in the next commit which converts code to use incoming_values().

llvm-svn: 237168
This commit is contained in:
Pete Cooper 2015-05-12 20:05:23 +00:00
parent 47e80cd796
commit 26b7aa020b
1 changed files with 2 additions and 0 deletions

View File

@ -2278,6 +2278,8 @@ public:
op_range incoming_values() { return operands(); }
const_op_range incoming_values() const { return operands(); }
/// getNumIncomingValues - Return the number of incoming edges
///
unsigned getNumIncomingValues() const { return getNumOperands(); }