Print integer values as both decimal and hexadecimal for convenience
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Execution.cpp
index 30ca4f66d40a1f4da8ee8595bbb1db70545cf7dc..0fff38cdec874fcd8a3b66ebd5e696890e92a70f 100644 (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;
   }
 }