diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
| commit | 6b7275996c78e50ca8b7d13625296b92d74b86c7 (patch) | |
| tree | 75817e19a6f0bb380bf1a9ba39f0664076fb5705 /llvm/lib/Bytecode/Reader/ConstantReader.cpp | |
| parent | 97bfcea262bbdeba8f8d468ff999008a4c448474 (diff) | |
| download | bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.tar.gz bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.zip | |
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
llvm-svn: 14201
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ConstantReader.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Reader/ConstantReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp index 8691b26544b..72d8caed673 100644 --- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp +++ b/llvm/lib/Bytecode/Reader/ConstantReader.cpp @@ -24,7 +24,7 @@ const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf, unsigned PrimType = read_vbr_uint(Buf, EndBuf); const Type *Val = 0; - if ((Val = Type::getPrimitiveType((Type::PrimitiveID)PrimType))) + if ((Val = Type::getPrimitiveType((Type::TypeID)PrimType))) return Val; switch (PrimType) { @@ -190,7 +190,7 @@ Constant *BytecodeParser::parseConstantValue(const unsigned char *&Buf, // Ok, not an ConstantExpr. We now know how to read the given type... const Type *Ty = getType(TypeID); - switch (Ty->getPrimitiveID()) { + switch (Ty->getTypeID()) { case Type::BoolTyID: { unsigned Val = read_vbr_uint(Buf, EndBuf); if (Val != 0 && Val != 1) throw std::string("Invalid boolean value read."); |

