From 2aac6bf66a4f4486e14ee5bdc96277ec770afdc7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 4 Apr 2002 22:19:18 +0000 Subject: s/MethodType/FunctionType git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/ExprTypeConvert.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Transforms/ExprTypeConvert.cpp') diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index cd76bdbf1f..790f68f7a3 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -832,7 +832,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty, if (OpNum == 0) { PointerType *PTy = dyn_cast(Ty); if (PTy == 0) return false; // Can't convert to a non-pointer type... - MethodType *MTy = dyn_cast(PTy->getElementType()); + FunctionType *MTy = dyn_cast(PTy->getElementType()); if (MTy == 0) return false; // Can't convert to a non ptr to method... // Perform sanity checks to make sure that new method type has the @@ -858,7 +858,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty, // reason for this is that we prefer to have resolved methods but casted // arguments if possible. // - const MethodType::ParamTypes &PTs = MTy->getParamTypes(); + const FunctionType::ParamTypes &PTs = MTy->getParamTypes(); for (unsigned i = 0, NA = PTs.size(); i < NA; ++i) if (!PTs[i]->isLosslesslyConvertableTo(I->getOperand(i+1)->getType())) return false; // Operands must have compatible types! @@ -871,7 +871,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty, } const PointerType *MPtr = cast(I->getOperand(0)->getType()); - const MethodType *MTy = cast(MPtr->getElementType()); + const FunctionType *MTy = cast(MPtr->getElementType()); if (!MTy->isVarArg()) return false; if ((OpNum-1) < MTy->getParamTypes().size()) @@ -1100,8 +1100,8 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal, if (Meth == OldVal) { // Changing the method pointer? PointerType *NewPTy = cast(NewVal->getType()); - MethodType *NewTy = cast(NewPTy->getElementType()); - const MethodType::ParamTypes &PTs = NewTy->getParamTypes(); + FunctionType *NewTy = cast(NewPTy->getElementType()); + const FunctionType::ParamTypes &PTs = NewTy->getParamTypes(); // Get an iterator to the call instruction so that we can insert casts for // operands if needbe. Note that we do not require operands to be -- cgit v1.2.3-70-g09d2