diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
commit | e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0 (patch) | |
tree | 2974769e972954dcb30707d7c7aab0ea1d6c661d /llvm/lib/Bytecode/Reader/InstructionReader.cpp | |
parent | e17c1fde8382a37d86ba9b234dca8c639f06f1c3 (diff) | |
download | bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.tar.gz bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.zip |
s/MethodType/FunctionType
llvm-svn: 2115
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/InstructionReader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index 8402db5e827..2d28db1b4c0 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/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<PointerType>(M->getType()); if (PTy == 0) return failure(true); - MethodType *MTy = dyn_cast<MethodType>(PTy->getElementType()); + FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType()); if (MTy == 0) return failure(true); vector<Value *> 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<PointerType>(M->getType()); if (PTy == 0) return failure(true); - MethodType *MTy = dyn_cast<MethodType>(PTy->getElementType()); + FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType()); if (MTy == 0) return failure(true); vector<Value *> Params; - const MethodType::ParamTypes &PL = MTy->getParamTypes(); + const FunctionType::ParamTypes &PL = MTy->getParamTypes(); vector<unsigned> &args = *Raw.VarArgs; BasicBlock *Normal, *Except; @@ -305,7 +305,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, Normal = cast<BasicBlock>(getValue(Type::LabelTy, Raw.Arg2)); Except = cast<BasicBlock>(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! |