diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-10-29 18:22:45 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-10-29 18:22:45 +0000 |
commit | 88560c3a4268937a5362e26d75185d436c93ea0a (patch) | |
tree | 2aef003375c6fb096210d2155327290581490476 /lib | |
parent | 65dea6e136e8fcb2d42aa09e28674227de6477cf (diff) | |
download | external_llvm-88560c3a4268937a5362e26d75185d436c93ea0a.zip external_llvm-88560c3a4268937a5362e26d75185d436c93ea0a.tar.gz external_llvm-88560c3a4268937a5362e26d75185d436c93ea0a.tar.bz2 |
When emitting debug msgs for function stubs, don't truncate the
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index a0e7a94..63bec96 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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); |