mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
Add convenience ctor to BranchInst
llvm-svn: 3675
This commit is contained in:
parent
5f4b79edaf
commit
67487b291c
@ -69,8 +69,9 @@ class BranchInst : public TerminatorInst {
|
|||||||
BranchInst(const BranchInst &BI);
|
BranchInst(const BranchInst &BI);
|
||||||
public:
|
public:
|
||||||
// If cond = null, then is an unconditional br...
|
// 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);
|
Instruction *InsertBefore = 0);
|
||||||
|
BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore = 0);
|
||||||
|
|
||||||
virtual Instruction *clone() const { return new BranchInst(*this); }
|
virtual Instruction *clone() const { return new BranchInst(*this); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user