diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-05-17 06:47:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-05-17 06:47:54 +0000 |
commit | 07ae5465cdfd7ec5a553fa5d000f96d59ff0b654 (patch) | |
tree | 6dd914aaa032344c88eab6cabd33147bb1c89694 /llvm/lib/ExecutionEngine/Interpreter | |
parent | 13f4bf5c5ef1299e29a404c99dd4b7510bd684b8 (diff) | |
download | bcm5719-llvm-07ae5465cdfd7ec5a553fa5d000f96d59ff0b654.tar.gz bcm5719-llvm-07ae5465cdfd7ec5a553fa5d000f96d59ff0b654.zip |
Print integer values as both decimal and hexadecimal for convenience
of verifying result values when debugging.
llvm-svn: 37156
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 30ca4f66d40..0fff38cdec8 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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; } } |