Add convenience ctor to BranchInst

llvm-svn: 3675
This commit is contained in:
Chris Lattner 2002-09-10 23:54:56 +00:00
parent cbc532603a
commit 4ecbe74c27
1 changed files with 2 additions and 1 deletions

View File

@ -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); }