diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:51:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:51:11 +0000 |
commit | c9aa7dfee4987dba9bf287ff5a747bc86fa21f3a (patch) | |
tree | e935cfcbdefcf293945465de8dd7f50dd48fdf0e /lib/Bytecode/Reader/ConstantReader.cpp | |
parent | 6bfd6a578a3a4fa95c585c988ee712ba880f9923 (diff) |
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index d5833dbeed..79bb68f555 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -28,7 +28,7 @@ const Type *BytecodeParser::parseTypeConstant(const uchar *&Buf, return Val; switch (PrimType) { - case Type::MethodTyID: { + case Type::FunctionTyID: { unsigned Typ; if (read_vbr(Buf, EndBuf, Typ)) return failure(Val); const Type *RetType = getType(Typ); @@ -48,7 +48,7 @@ const Type *BytecodeParser::parseTypeConstant(const uchar *&Buf, bool isVarArg = Params.size() && Params.back() == Type::VoidTy; if (isVarArg) Params.pop_back(); - return MethodType::get(RetType, Params, isVarArg); + return FunctionType::get(RetType, Params, isVarArg); } case Type::ArrayTyID: { unsigned ElTyp; |