[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp

Chris Lattner sabre at nondot.org
Mon Feb 12 22:22:52 PST 2007



Changes in directory llvm/lib/VMCore:

Instructions.cpp updated: 1.73 -> 1.74
---
Log message:

eliminate instruction ctors that take vectors.


---
Diffs of the changes:  (+0 -37)

 Instructions.cpp |   37 -------------------------------------
 1 files changed, 37 deletions(-)


Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.73 llvm/lib/VMCore/Instructions.cpp:1.74
--- llvm/lib/VMCore/Instructions.cpp:1.73	Mon Feb 12 19:04:01 2007
+++ llvm/lib/VMCore/Instructions.cpp	Tue Feb 13 00:22:32 2007
@@ -268,14 +268,6 @@
   assert(FTy->getNumParams() == 0 && "Calling a function with bad signature");
 }
 
-CallInst::CallInst(Value *Func, const std::vector<Value*> &Params,
-                   const std::string &Name, Instruction *InsertBefore)
-  : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
-                                 ->getElementType())->getReturnType(),
-                Instruction::Call, 0, 0, Name, InsertBefore) {
-  init(Func, &Params[0], Params.size());
-}
-
 CallInst::CallInst(Value *Func, Value* const *Args, unsigned NumArgs,
                    const std::string &Name, BasicBlock *InsertAtEnd)
   : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
@@ -291,15 +283,6 @@
   init(Func, Args, NumArgs);
 }
 
-CallInst::CallInst(Value *Func, const std::vector<Value*> &Params,
-                   const std::string &Name, BasicBlock *InsertAtEnd)
-: Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
-                                 ->getElementType())->getReturnType(),
-              Instruction::Call, 0, 0, Name, InsertAtEnd) {
-  init(Func, &Params[0], Params.size());
-}
-
-
 CallInst::CallInst(Value *Func, Value *Actual1, Value *Actual2,
                    const std::string &Name, Instruction  *InsertBefore)
   : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
@@ -411,26 +394,6 @@
   init(Fn, IfNormal, IfException, Args, NumArgs);
 }
 
-InvokeInst::InvokeInst(Value *Fn, BasicBlock *IfNormal,
-                       BasicBlock *IfException,
-                       const std::vector<Value*> &Params,
-                       const std::string &Name, Instruction *InsertBefore)
-  : TerminatorInst(cast<FunctionType>(cast<PointerType>(Fn->getType())
-                                    ->getElementType())->getReturnType(),
-                   Instruction::Invoke, 0, 0, Name, InsertBefore) {
-  init(Fn, IfNormal, IfException, &Params[0], Params.size());
-}
-
-InvokeInst::InvokeInst(Value *Fn, BasicBlock *IfNormal,
-                       BasicBlock *IfException,
-                       const std::vector<Value*> &Params,
-                       const std::string &Name, BasicBlock *InsertAtEnd)
-  : TerminatorInst(cast<FunctionType>(cast<PointerType>(Fn->getType())
-                                    ->getElementType())->getReturnType(),
-                   Instruction::Invoke, 0, 0, Name, InsertAtEnd) {
-  init(Fn, IfNormal, IfException, &Params[0], Params.size());
-}
-
 InvokeInst::InvokeInst(const InvokeInst &II)
   : TerminatorInst(II.getType(), Instruction::Invoke,
                    new Use[II.getNumOperands()], II.getNumOperands()) {






More information about the llvm-commits mailing list