diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-11-12 03:55:33 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-11-12 03:55:33 +0000 |
commit | 7707a0df5b00c8326a581205639d6b2871f182e9 (patch) | |
tree | 201da19157333dac88ceed0ae30fa76dbf84c14b /include/llvm/CodeGen | |
parent | 01dec0e545de18aadcd3911563a93d10a625be80 (diff) | |
download | external_llvm-7707a0df5b00c8326a581205639d6b2871f182e9.zip external_llvm-7707a0df5b00c8326a581205639d6b2871f182e9.tar.gz external_llvm-7707a0df5b00c8326a581205639d6b2871f182e9.tar.bz2 |
Move the utility function UpdateTerminator() from CodePlacementOpt() into
MachineBasicBlock so other passes can utilize it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 95fd6a4..b11adfe 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -225,7 +225,13 @@ public: /// potential fall-throughs at the end of the block. void moveBefore(MachineBasicBlock *NewAfter); void moveAfter(MachineBasicBlock *NewBefore); - + + /// updateTerminator - Update the terminator instructions in block to account + /// for changes to the layout. If the block previously used a fallthrough, + /// it may now need a branch, and if it previously used branching it may now + /// be able to use a fallthrough. + void updateTerminator(); + // Machine-CFG mutators /// addSuccessor - Add succ as a successor of this MachineBasicBlock. |