aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-06-04 06:44:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-06-04 06:44:01 +0000
commit0370fad74b48388412c52d1325512f2c218487fa (patch)
tree719b56402f4e3d3d2072bec9dc55d461d93eeb53 /include/llvm/CodeGen/MachineBasicBlock.h
parent26042420d642e810f5cdfb2da6156b74aaf80945 (diff)
Move ReplaceUsesOfBlockWith() out of BranchFolding into a MachineBasicBlock general facility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index b3578584e6..790be6cb64 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -246,6 +246,10 @@ public:
Insts.splice(where, Other->Insts, From, To);
}
+ /// ReplaceUsesOfBlockWith - Given a machine basic block that branched to
+ /// 'Old', change the code and CFG so that it branches to 'New' instead.
+ void ReplaceUsesOfBlockWith(MachineBasicBlock *Old, MachineBasicBlock *New);
+
// Debugging methods.
void dump() const;
void print(std::ostream &OS) const;