summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-10 23:54:56 +0000
committerChris Lattner <sabre@nondot.org>2002-09-10 23:54:56 +0000
commit4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234 (patch)
treeb193b88db0b2d9c9d9683e4e0f23fad76b0f58ca /llvm
parentcbc532603a5418506fa38ee8eef3225375813e59 (diff)
downloadbcm5719-llvm-4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234.tar.gz
bcm5719-llvm-4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234.zip
Add convenience ctor to BranchInst
llvm-svn: 3675
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/iTerminators.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/iTerminators.h b/llvm/include/llvm/iTerminators.h
index adf67abe45d..85c2c8b4efd 100644
--- a/llvm/include/llvm/iTerminators.h
+++ b/llvm/include/llvm/iTerminators.h
@@ -69,8 +69,9 @@ class BranchInst : public TerminatorInst {
BranchInst(const BranchInst &BI);
public:
// If cond = null, then is an unconditional br...
- BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse = 0, Value *cond = 0,
+ BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *cond = 0,
Instruction *InsertBefore = 0);
+ BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore = 0);
virtual Instruction *clone() const { return new BranchInst(*this); }
OpenPOWER on IntegriCloud