mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
Add some convenience methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23b72005fa
commit
6b56091842
@ -499,6 +499,16 @@ public:
|
||||
/// clone - Create a copy of 'this' instruction that is identical in
|
||||
/// all ways except the the instruction has no parent, prev, or next.
|
||||
MachineInstr* clone() const;
|
||||
|
||||
/// removeFromParent - This method unlinks 'this' from the containing basic
|
||||
/// block, and returns it, but does not delete it.
|
||||
MachineInstr *removeFromParent();
|
||||
|
||||
/// eraseFromParent - This method unlinks 'this' from the containing basic
|
||||
/// block and deletes it.
|
||||
void eraseFromParent() {
|
||||
delete removeFromParent();
|
||||
}
|
||||
|
||||
//
|
||||
// Debugging support
|
||||
|
Loading…
Reference in New Issue
Block a user