Minor change to make lli print out characters numerically as well as symbolically
authorChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 20:45:11 +0000 (20:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 20:45:11 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3303 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index f1e1d0c580e760e0b7b918337d232d9117ad4d7e..9add907131f3e656064150bcc86ba6727eba46a4 100644 (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;