From 12e6465d89e24c0b20d7496bb1c0129f47dff6ce Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 22 May 2003 18:08:30 +0000 Subject: Eliminate the uchar typedef, use unsigned char explicitly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6283 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/ConstantReader.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib/Bytecode/Reader/ConstantReader.cpp') diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 0ad38b4025..80c6fc34f4 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -13,8 +13,8 @@ #include "llvm/Constants.h" #include -const Type *BytecodeParser::parseTypeConstant(const uchar *&Buf, - const uchar *EndBuf) { +const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf, + const unsigned char *EndBuf) { unsigned PrimType; if (read_vbr(Buf, EndBuf, PrimType)) return 0; @@ -131,7 +131,8 @@ void BytecodeParser::refineAbstractType(const DerivedType *OldType, // with a new resolved concrete type. // void debug_type_tables(); -bool BytecodeParser::parseTypeConstants(const uchar *&Buf, const uchar *EndBuf, +bool BytecodeParser::parseTypeConstants(const unsigned char *&Buf, + const unsigned char *EndBuf, TypeValuesListTy &Tab, unsigned NumEntries) { assert(Tab.size() == 0 && "should not have read type constants in before!"); @@ -173,7 +174,8 @@ bool BytecodeParser::parseTypeConstants(const uchar *&Buf, const uchar *EndBuf, } -bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, +bool BytecodeParser::parseConstantValue(const unsigned char *&Buf, + const unsigned char *EndBuf, const Type *Ty, Constant *&V) { // We must check for a ConstantExpr before switching by type because @@ -379,12 +381,14 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, return false; } -bool BytecodeParser::ParseGlobalTypes(const uchar *&Buf, const uchar *EndBuf) { +bool BytecodeParser::ParseGlobalTypes(const unsigned char *&Buf, + const unsigned char *EndBuf) { ValueTable T; return ParseConstantPool(Buf, EndBuf, T, ModuleTypeValues); } -bool BytecodeParser::ParseConstantPool(const uchar *&Buf, const uchar *EndBuf, +bool BytecodeParser::ParseConstantPool(const unsigned char *&Buf, + const unsigned char *EndBuf, ValueTable &Tab, TypeValuesListTy &TypeTab) { while (Buf < EndBuf) { -- cgit v1.2.3-18-g5258