aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2011-12-09 21:19:53 +0000
committerJakub Staszak <kubastaszak@gmail.com>2011-12-09 21:19:53 +0000
commit2fac1d5d61a83c45dcf44119c41dce15ef10e9dc (patch)
tree5dc3e50b746e0664636867803b4edc119ffe1158 /include/llvm/Transforms/Utils
parentcd462d055ffc18a526a9a1d343261d8550e99280 (diff)
downloadexternal_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.zip
external_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.tar.gz
external_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.tar.bz2
SplitBlockPredecessors uses ArrayRef instead of Data and Size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/BasicBlockUtils.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h
index 6fcd160..867b9e4 100644
--- a/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -173,9 +173,8 @@ BasicBlock *SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P);
/// complicated to handle the case where one of the edges being split
/// is an exit of a loop with other exits).
///
-BasicBlock *SplitBlockPredecessors(BasicBlock *BB, BasicBlock *const *Preds,
- unsigned NumPreds, const char *Suffix,
- Pass *P = 0);
+BasicBlock *SplitBlockPredecessors(BasicBlock *BB, ArrayRef<BasicBlock*> Preds,
+ const char *Suffix, Pass *P = 0);
/// SplitLandingPadPredecessors - This method transforms the landing pad,
/// OrigBB, by introducing two new basic blocks into the function. One of those