mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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
This commit is contained in:
parent
ca710e9cc5
commit
65629d5a16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user