diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-09-10 15:45:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 15:45:53 +0000 |
| commit | 3c787446c751ad4fa9d0a2ae3fbf6fa862e688f0 (patch) | |
| tree | 27b39a457d597ae55342958a69efe487f5e53270 /llvm/lib/VMCore/iBranch.cpp | |
| parent | da7daf76a48b9d34acd0e2e57f2a4cf07cf720ce (diff) | |
| download | bcm5719-llvm-3c787446c751ad4fa9d0a2ae3fbf6fa862e688f0.tar.gz bcm5719-llvm-3c787446c751ad4fa9d0a2ae3fbf6fa862e688f0.zip | |
Add capability to insert an instruction into a basic block immediately after
it is created, as part of the ctor call.
Eliminate the GenericBinaryInst class
llvm-svn: 3653
Diffstat (limited to 'llvm/lib/VMCore/iBranch.cpp')
| -rw-r--r-- | llvm/lib/VMCore/iBranch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/iBranch.cpp b/llvm/lib/VMCore/iBranch.cpp index fe5c060c8d8..1561c3b7095 100644 --- a/llvm/lib/VMCore/iBranch.cpp +++ b/llvm/lib/VMCore/iBranch.cpp @@ -9,8 +9,9 @@ #include "llvm/BasicBlock.h" #include "llvm/Type.h" -BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond) - : TerminatorInst(Instruction::Br) { +BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond, + Instruction *InsertBefore) + : TerminatorInst(Instruction::Br, InsertBefore) { assert(True != 0 && "True branch destination may not be null!!!"); Operands.reserve(False ? 3 : 1); Operands.push_back(Use(True, this)); |

