When emitting debug msgs for function stubs, don't truncate the
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 29 Oct 2004 18:22:45 +0000 (18:22 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 29 Oct 2004 18:22:45 +0000 (18:22 +0000)
printed pointer value if sizeof(unsigned) != pointer size.  Instead,
use uintptr_t.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17338 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index a0e7a946092aa01d8288f41fa62f347ce30c474e..63bec960936cd9921f0207c1c6e66c7839417dd6 100644 (file)
@@ -187,7 +187,7 @@ void Emitter::startFunctionStub(const Function &F, unsigned StubSize) {
 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);