Minor change to make lli print out characters numerically as well as symbolically

llvm-svn: 3303
This commit is contained in:
Chris Lattner 2002-08-13 20:45:11 +00:00
parent a3efa260ea
commit 42f596feda
1 changed files with 4 additions and 2 deletions

View File

@ -1323,8 +1323,10 @@ void Interpreter::printCurrentInstruction() {
void Interpreter::printValue(const Type *Ty, GenericValue V) {
switch (Ty->getPrimitiveID()) {
case Type::BoolTyID: cout << (V.BoolVal?"true":"false"); break;
case Type::SByteTyID: cout << V.SByteVal; break;
case Type::UByteTyID: cout << V.UByteVal; break;
case Type::SByteTyID:
cout << (int)V.SByteVal << " '" << V.SByteVal << "'"; break;
case Type::UByteTyID:
cout << (unsigned)V.UByteVal << " '" << V.UByteVal << "'"; break;
case Type::ShortTyID: cout << V.ShortVal; break;
case Type::UShortTyID: cout << V.UShortVal; break;
case Type::IntTyID: cout << V.IntVal; break;