Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.95 -> 1.96 --- Log message: Rename BoolTy as Int1Ty. Patch by Sheng Zhou. --- Diffs of the changes: (+6 -6) ExecutionEngine.cpp | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.95 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.96 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.95 Thu Jan 11 06:24:14 2007 +++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Thu Jan 11 12:21:29 2007 @@ -351,7 +351,7 @@ Constant *Op = CE->getOperand(0); GenericValue GV = getConstantValue(Op); switch (Op->getType()->getTypeID()) { - case Type::BoolTyID: return PTOGV((void*)(uintptr_t)GV.BoolVal); + case Type::Int1TyID: return PTOGV((void*)(uintptr_t)GV.Int1Val); case Type::Int8TyID: return PTOGV((void*)(uintptr_t)GV.Int8Val); case Type::Int16TyID: return PTOGV((void*)(uintptr_t)GV.Int16Val); case Type::Int32TyID: return PTOGV((void*)(uintptr_t)GV.Int32Val); @@ -399,7 +399,7 @@ switch (C->getType()->getTypeID()) { #define GET_CONST_VAL(TY, CTY, CLASS, GETMETH) \ case Type::TY##TyID: Result.TY##Val = (CTY)cast<CLASS>(C)->GETMETH(); break - GET_CONST_VAL(Bool , bool , ConstantInt, getBoolValue); + GET_CONST_VAL(Int1 , bool , ConstantInt, getBoolValue); GET_CONST_VAL(Int8 , unsigned char , ConstantInt, getZExtValue); GET_CONST_VAL(Int16 , unsigned short, ConstantInt, getZExtValue); GET_CONST_VAL(Int32 , unsigned int , ConstantInt, getZExtValue); @@ -433,7 +433,7 @@ const Type *Ty) { if (getTargetData()->isLittleEndian()) { switch (Ty->getTypeID()) { - case Type::BoolTyID: + case Type::Int1TyID: case Type::Int8TyID: Ptr->Untyped[0] = Val.Int8Val; break; case Type::Int16TyID: Ptr->Untyped[0] = Val.Int16Val & 255; Ptr->Untyped[1] = (Val.Int16Val >> 8) & 255; @@ -463,7 +463,7 @@ } } else { switch (Ty->getTypeID()) { - case Type::BoolTyID: + case Type::Int1TyID: case Type::Int8TyID: Ptr->Untyped[0] = Val.Int8Val; break; case Type::Int16TyID: Ptr->Untyped[1] = Val.Int16Val & 255; Ptr->Untyped[0] = (Val.Int16Val >> 8) & 255; @@ -501,7 +501,7 @@ GenericValue Result; if (getTargetData()->isLittleEndian()) { switch (Ty->getTypeID()) { - case Type::BoolTyID: + case Type::Int1TyID: case Type::Int8TyID: Result.Int8Val = Ptr->Untyped[0]; break; case Type::Int16TyID: Result.Int16Val = (unsigned)Ptr->Untyped[0] | ((unsigned)Ptr->Untyped[1] << 8); @@ -531,7 +531,7 @@ } } else { switch (Ty->getTypeID()) { - case Type::BoolTyID: + case Type::Int1TyID: case Type::Int8TyID: Result.Int8Val = Ptr->Untyped[0]; break; case Type::Int16TyID: Result.Int16Val = (unsigned)Ptr->Untyped[1] | ((unsigned)Ptr->Untyped[0] << 8); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits