summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iBranch.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-10 15:45:53 +0000
committerChris Lattner <sabre@nondot.org>2002-09-10 15:45:53 +0000
commit3c787446c751ad4fa9d0a2ae3fbf6fa862e688f0 (patch)
tree27b39a457d597ae55342958a69efe487f5e53270 /llvm/lib/VMCore/iBranch.cpp
parentda7daf76a48b9d34acd0e2e57f2a4cf07cf720ce (diff)
downloadbcm5719-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.cpp5
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));
OpenPOWER on IntegriCloud