summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 06:22:32 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 06:22:32 +0000
commite563e480d9fc91f886d2774adc4c4112a3cef70a (patch)
treebc9197ee27298ad4837f3dec119d2481092fa301 /llvm/lib
parente3cf188c1e1e693d73621ae197e39f79090a6c5d (diff)
downloadbcm5719-llvm-e563e480d9fc91f886d2774adc4c4112a3cef70a.tar.gz
bcm5719-llvm-e563e480d9fc91f886d2774adc4c4112a3cef70a.zip
eliminate instruction ctors that take vectors.
llvm-svn: 34228
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index bc4281cb465..2b57af85272 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -268,14 +268,6 @@ void CallInst::init(Value *Func) {
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 @@ CallInst::CallInst(Value *Func, Value* const *Args, unsigned NumArgs,
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 @@ InvokeInst::InvokeInst(Value *Fn, BasicBlock *IfNormal,
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()) {
OpenPOWER on IntegriCloud