aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/iCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-04 22:19:18 +0000
committerChris Lattner <sabre@nondot.org>2002-04-04 22:19:18 +0000
commit2aac6bf66a4f4486e14ee5bdc96277ec770afdc7 (patch)
tree7c0149ec42632ae549ecdb13e45c1ec780eb3063 /lib/VMCore/iCall.cpp
parent3d0dceb733fe8d5d916eab58d923eb7ff491d6c6 (diff)
s/MethodType/FunctionType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iCall.cpp')
-rw-r--r--lib/VMCore/iCall.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/VMCore/iCall.cpp b/lib/VMCore/iCall.cpp
index 37eb24e86c..d757ea2349 100644
--- a/lib/VMCore/iCall.cpp
+++ b/lib/VMCore/iCall.cpp
@@ -15,16 +15,16 @@
CallInst::CallInst(Value *Meth, const std::vector<Value*> &params,
const std::string &Name)
- : Instruction(cast<MethodType>(cast<PointerType>(Meth->getType())
+ : Instruction(cast<FunctionType>(cast<PointerType>(Meth->getType())
->getElementType())->getReturnType(),
Instruction::Call, Name) {
Operands.reserve(1+params.size());
Operands.push_back(Use(Meth, this));
- const MethodType *MTy =
- cast<MethodType>(cast<PointerType>(Meth->getType())->getElementType());
+ const FunctionType *MTy =
+ cast<FunctionType>(cast<PointerType>(Meth->getType())->getElementType());
- const MethodType::ParamTypes &PL = MTy->getParamTypes();
+ const FunctionType::ParamTypes &PL = MTy->getParamTypes();
assert((params.size() == PL.size()) ||
(MTy->isVarArg() && params.size() >= PL.size()) &&
"Calling a function with bad signature");
@@ -47,17 +47,17 @@ InvokeInst::InvokeInst(Value *Meth, BasicBlock *IfNormal, \
BasicBlock *IfException,
const std::vector<Value*> &params,
const std::string &Name)
- : TerminatorInst(cast<MethodType>(cast<PointerType>(Meth->getType())
+ : TerminatorInst(cast<FunctionType>(cast<PointerType>(Meth->getType())
->getElementType())->getReturnType(),
Instruction::Invoke, Name) {
Operands.reserve(3+params.size());
Operands.push_back(Use(Meth, this));
Operands.push_back(Use(IfNormal, this));
Operands.push_back(Use(IfException, this));
- const MethodType *MTy =
- cast<MethodType>(cast<PointerType>(Meth->getType())->getElementType());
+ const FunctionType *MTy =
+ cast<FunctionType>(cast<PointerType>(Meth->getType())->getElementType());
- const MethodType::ParamTypes &PL = MTy->getParamTypes();
+ const FunctionType::ParamTypes &PL = MTy->getParamTypes();
assert((params.size() == PL.size()) ||
(MTy->isVarArg() && params.size() > PL.size()) &&
"Calling a function with bad signature");