[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Oct 29 11:23:02 PDT 2004
Changes in directory llvm/lib/ExecutionEngine/JIT:
Emitter.cpp updated: 1.45 -> 1.46
---
Log message:
When emitting debug msgs for function stubs, don't truncate the
printed pointer value if sizeof(unsigned) != pointer size. Instead,
use uintptr_t.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.45 llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.46
--- llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.45 Mon Sep 13 17:38:12 2004
+++ llvm/lib/ExecutionEngine/JIT/Emitter.cpp Fri Oct 29 13:22:45 2004
@@ -187,7 +187,7 @@
void *Emitter::finishFunctionStub(const Function &F) {
NumBytes += CurByte-CurBlock;
DEBUG(std::cerr << "Finished CodeGen of [0x" << std::hex
- << (unsigned)(intptr_t)CurBlock
+ << (uintptr_t)CurBlock
<< std::dec << "] Function stub for: " << F.getName()
<< ": " << CurByte-CurBlock << " bytes of text\n");
std::swap(CurBlock, SavedCurBlock);
More information about the llvm-commits
mailing list