mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
Add extra method to PHI node class
llvm-svn: 11
This commit is contained in:
parent
d821c2af37
commit
e6c4ea9861
@ -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…
x
Reference in New Issue
Block a user