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 | 2aa831120c97fa4725aea97b0b3e67e8d95b4f38 (patch) | |
| tree | cd3d5fb5804f89f0b810198075909f8694107616 /lib/VMCore/iCall.cpp | |
| parent | 6e65cda0ec32ad446e1405e21fef52107d996961 (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.cpp | 8 |
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*> ¶ms, - 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*> ¶ms, - 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)); |
