[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp

Reid Spencer reid at x10sys.com
Wed May 16 23:48:12 PDT 2007



Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Execution.cpp updated: 1.183 -> 1.184
---
Log message:

Print integer values as both decimal and hexadecimal for convenience
of verifying result values when debugging.


---
Diffs of the changes:  (+1 -1)

 Execution.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.183 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.184
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.183	Wed May 16 11:39:29 2007
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp	Thu May 17 01:47:54 2007
@@ -1347,7 +1347,7 @@
     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;
   }
 }






More information about the llvm-commits mailing list