From: Reid Spencer Date: Thu, 17 May 2007 06:47:54 +0000 (+0000) Subject: Print integer values as both decimal and hexadecimal for convenience X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=09d8c9278edd6c0f0d8b3f9ecbec2d8c6e3baaf7;p=oota-llvm.git 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 --- diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 30ca4f66d40..0fff38cdec8 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; } }