aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-13 20:45:11 +0000
committerChris Lattner <sabre@nondot.org>2002-08-13 20:45:11 +0000
commit65629d5a169753f007c5eab6586b98acd90b2dc7 (patch)
tree0cbbc201e4c8ae4c86ad1b150c250664f6f335b2 /lib/ExecutionEngine/Interpreter/Execution.cpp
parentca710e9cc5991369ef1ed5dc9fa5063d8feb24a2 (diff)
Minor change to make lli print out characters numerically as well as symbolically
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index f1e1d0c580..9add907131 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -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;