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/Bytecode/Reader/InstructionReader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/Bytecode/Reader/InstructionReader.cpp') diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 8402db5e82..2d28db1b4c 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -230,14 +230,14 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, // Check to make sure we have a pointer to method type PointerType *PTy = dyn_cast(M->getType()); if (PTy == 0) return failure(true); - MethodType *MTy = dyn_cast(PTy->getElementType()); + FunctionType *MTy = dyn_cast(PTy->getElementType()); if (MTy == 0) return failure(true); vector Params; - const MethodType::ParamTypes &PL = MTy->getParamTypes(); + const FunctionType::ParamTypes &PL = MTy->getParamTypes(); if (!MTy->isVarArg()) { - MethodType::ParamTypes::const_iterator It = PL.begin(); + FunctionType::ParamTypes::const_iterator It = PL.begin(); switch (Raw.NumOperands) { case 0: cerr << "Invalid call instruction encountered!\n"; @@ -290,11 +290,11 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, // Check to make sure we have a pointer to method type PointerType *PTy = dyn_cast(M->getType()); if (PTy == 0) return failure(true); - MethodType *MTy = dyn_cast(PTy->getElementType()); + FunctionType *MTy = dyn_cast(PTy->getElementType()); if (MTy == 0) return failure(true); vector Params; - const MethodType::ParamTypes &PL = MTy->getParamTypes(); + const FunctionType::ParamTypes &PL = MTy->getParamTypes(); vector &args = *Raw.VarArgs; BasicBlock *Normal, *Except; @@ -305,7 +305,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, Normal = cast(getValue(Type::LabelTy, Raw.Arg2)); Except = cast(getValue(Type::LabelTy, args[0])); - MethodType::ParamTypes::const_iterator It = PL.begin(); + FunctionType::ParamTypes::const_iterator It = PL.begin(); for (unsigned i = 1; i < args.size(); i++) { if (It == PL.end()) return failure(true); // TODO: Check getValue for null! -- cgit v1.2.3-18-g5258