mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Minor change to make lli print out characters numerically as well as symbolically
llvm-svn: 3303
This commit is contained in:
parent
19b35e6904
commit
3d013e4c40
@ -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