Provide a way to change the incoming value for a phi node

llvm-svn: 495
This commit is contained in:
Chris Lattner 2001-09-07 22:19:55 +00:00
parent 7170360d74
commit c6d8db65c8
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ public:
inline Value *getIncomingValue(unsigned i) {
return Operands[i*2];
}
inline void setIncomingValue(unsigned i, Value *V) {
Operands[i*2] = V;
}
// getIncomingBlock - Return incoming basic block #x
inline const BasicBlock *getIncomingBlock(unsigned i) const {