aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/iCall.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
commit2aa831120c97fa4725aea97b0b3e67e8d95b4f38 (patch)
treecd3d5fb5804f89f0b810198075909f8694107616 /lib/VMCore/iCall.cpp
parent6e65cda0ec32ad446e1405e21fef52107d996961 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iCall.cpp')
-rw-r--r--lib/VMCore/iCall.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/iCall.cpp b/lib/VMCore/iCall.cpp
index 9e5ca01787..3a0545f174 100644
--- a/lib/VMCore/iCall.cpp
+++ b/lib/VMCore/iCall.cpp
@@ -14,10 +14,10 @@
//===----------------------------------------------------------------------===//
CallInst::CallInst(Value *Func, const std::vector<Value*> &params,
- const std::string &Name)
+ const std::string &Name, Instruction *InsertBefore)
: Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
->getElementType())->getReturnType(),
- Instruction::Call, Name) {
+ Instruction::Call, Name, InsertBefore) {
Operands.reserve(1+params.size());
Operands.push_back(Use(Func, this));
@@ -46,10 +46,10 @@ CallInst::CallInst(const CallInst &CI)
InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal,
BasicBlock *IfException,
const std::vector<Value*> &params,
- const std::string &Name)
+ const std::string &Name, Instruction *InsertBefore)
: TerminatorInst(cast<FunctionType>(cast<PointerType>(Func->getType())
->getElementType())->getReturnType(),
- Instruction::Invoke, Name) {
+ Instruction::Invoke, Name, InsertBefore) {
Operands.reserve(3+params.size());
Operands.push_back(Use(Func, this));
Operands.push_back(Use((Value*)IfNormal, this));