mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 06:30:30 +00:00
add two helper methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2ca21f88f
commit
34ea07692f
@ -125,8 +125,16 @@ public:
|
||||
unsigned succ_size() const { return Successors.size(); }
|
||||
bool succ_empty() const { return Successors.empty(); }
|
||||
|
||||
// Code Layout methods.
|
||||
|
||||
/// moveBefore/moveAfter - move 'this' block before or after the specified
|
||||
/// block. This only moves the block, it does not modify the CFG or adjust
|
||||
/// potential fall-throughs at the end of the block.
|
||||
void moveBefore(MachineBasicBlock *NewAfter);
|
||||
void moveAfter(MachineBasicBlock *NewBefore);
|
||||
|
||||
// Machine-CFG mutators
|
||||
|
||||
|
||||
/// addSuccessor - Add succ as a successor of this MachineBasicBlock.
|
||||
/// The Predecessors list of succ is automatically updated.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user