From 6b7275996c78e50ca8b7d13625296b92d74b86c7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 17 Jun 2004 18:19:28 +0000 Subject: Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() llvm-svn: 14201 --- llvm/lib/Bytecode/Writer/InstructionWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Bytecode/Writer/InstructionWriter.cpp') diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp index 9e063510dfe..188136718d8 100644 --- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp @@ -70,7 +70,7 @@ static void outputInstructionFormat0(const Instruction *I, unsigned Opcode, if (isa(*TI)) { unsigned IdxId; - switch (I->getOperand(Idx)->getType()->getPrimitiveID()) { + switch (I->getOperand(Idx)->getType()->getTypeID()) { default: assert(0 && "Unknown index type!"); case Type::UIntTyID: IdxId = 0; break; case Type::IntTyID: IdxId = 1; break; @@ -298,7 +298,7 @@ void BytecodeWriter::outputInstruction(const Instruction &I) { I != E; ++I, ++Idx) if (isa(*I)) { unsigned IdxId; - switch (GEP->getOperand(Idx)->getType()->getPrimitiveID()) { + switch (GEP->getOperand(Idx)->getType()->getTypeID()) { default: assert(0 && "Unknown index type!"); case Type::UIntTyID: IdxId = 0; break; case Type::IntTyID: IdxId = 1; break; -- cgit v1.2.3