From c9aa7dfee4987dba9bf287ff5a747bc86fa21f3a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Mar 2002 03:51:11 +0000 Subject: s/Method/Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2035 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/ConstantWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp') diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 73130f3ee8..296e326445 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -24,8 +24,8 @@ void BytecodeWriter::outputType(const Type *T) { return; // We might do this if we alias a prim type: %x = type int switch (T->getPrimitiveID()) { // Handle derived types now. - case Type::MethodTyID: { - const MethodType *MT = cast(T); + case Type::FunctionTyID: { + const FunctionType *MT = cast(T); int Slot = Table.getValSlot(MT->getReturnType()); assert(Slot != -1 && "Type used but not available!!"); output_vbr((unsigned)Slot, Out); @@ -34,7 +34,7 @@ void BytecodeWriter::outputType(const Type *T) { output_vbr(MT->getParamTypes().size()+MT->isVarArg(), Out); // Output all of the arguments... - MethodType::ParamTypes::const_iterator I = MT->getParamTypes().begin(); + FunctionType::ParamTypes::const_iterator I = MT->getParamTypes().begin(); for (; I != MT->getParamTypes().end(); ++I) { Slot = Table.getValSlot(*I); assert(Slot != -1 && "Type used but not available!!"); -- cgit v1.2.3-18-g5258