projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47e80cd
)
Add a const method to iterator over PHI incoming values.
author
Pete Cooper
<peter_cooper@apple.com>
Tue, 12 May 2015 20:05:23 +0000
(20:05 +0000)
committer
Pete Cooper
<peter_cooper@apple.com>
Tue, 12 May 2015 20:05:23 +0000
(20:05 +0000)
This will be used in the next commit which converts code to use incoming_values().
llvm-svn: 237168
llvm/include/llvm/IR/Instructions.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/Instructions.h
b/llvm/include/llvm/IR/Instructions.h
index
5b37d4b
..
e8e7069
100644
(file)
--- a/
llvm/include/llvm/IR/Instructions.h
+++ b/
llvm/include/llvm/IR/Instructions.h
@@
-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(); }