Print integer values as both decimal and hexadecimal for convenience

of verifying result values when debugging.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-05-17 06:47:54 +00:00
parent a066810681
commit 09d8c9278e

View File

@ -1347,7 +1347,7 @@ static void PrintGenericValue(const GenericValue &Val, const Type* Ty) {
case Type::PointerTyID: DOUT << "void* " << intptr_t(Val.PointerVal); break;
case Type::IntegerTyID:
DOUT << "i" << Val.IntVal.getBitWidth() << " " << Val.IntVal.toString(10)
<< "\n";
<< " (0x" << Val.IntVal.toString(16) << ")\n";
break;
}
}