mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Add extra method to PHI node class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f155e13092
commit
b0b0aa3849
@ -64,3 +64,10 @@ void PHINode::addIncoming(Value *D) {
|
||||
IncomingValues.push_back(Use(D, this));
|
||||
}
|
||||
|
||||
// removeIncomingValue - Remove an incoming value. This is useful if a
|
||||
// predecessor basic block is deleted.
|
||||
Value *PHINode::removeIncomingValue(unsigned idx) {
|
||||
Value *Removed = IncomingValues[idx];
|
||||
IncomingValues.erase(IncomingValues.begin()+idx);
|
||||
return Removed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user