aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-05-17 06:47:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-05-17 06:47:54 +0000
commit09d8c9278edd6c0f0d8b3f9ecbec2d8c6e3baaf7 (patch)
tree2ccb3cf1fe4871f65f5b28a4dc759c49f27a3583 /lib/ExecutionEngine/Interpreter
parenta0668106811411136ce1f7e0d45293be02b8861d (diff)
downloadexternal_llvm-09d8c9278edd6c0f0d8b3f9ecbec2d8c6e3baaf7.zip
external_llvm-09d8c9278edd6c0f0d8b3f9ecbec2d8c6e3baaf7.tar.gz
external_llvm-09d8c9278edd6c0f0d8b3f9ecbec2d8c6e3baaf7.tar.bz2
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
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 30ca4f6..0fff38c 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/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;
}
}