aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-17 00:01:40 +0000
committerOwen Anderson <resistor@mac.com>2008-07-17 00:01:40 +0000
commitf59eef89e82daf5b28a85903c31844d35099b76e (patch)
tree550a9ec8e53cd9d7eac0538e6b2322fed375d56e /include
parent6b2c85444a6eb680bbbe69c1bfd781f0ff8e23b2 (diff)
downloadexternal_llvm-f59eef89e82daf5b28a85903c31844d35099b76e.zip
external_llvm-f59eef89e82daf5b28a85903c31844d35099b76e.tar.gz
external_llvm-f59eef89e82daf5b28a85903c31844d35099b76e.tar.bz2
Factor MergeBlockIntoPredecessor out into BasicBlockUtils.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/BasicBlockUtils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h
index a44095f..f1a7a26 100644
--- a/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -25,6 +25,10 @@ namespace llvm {
class Instruction;
class Pass;
+/// MergeBlockIntoPredecessor - Attempts to merge a block into its predecessor,
+/// if possible. The return value indicates success or failure.
+bool MergeBlockIntoPredecessor(BasicBlock* BB, Pass* P);
+
// ReplaceInstWithValue - Replace all uses of an instruction (specified by BI)
// with a value, then remove and delete the original instruction.
//