mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-15 06:01:20 +00:00
When emitting debug msgs for function stubs, don't truncate the
printed pointer value if sizeof(unsigned) != pointer size. Instead, use uintptr_t. llvm-svn: 17338
This commit is contained in:
parent
5ce9c3cdb0
commit
a757bae04f
@ -187,7 +187,7 @@ void Emitter::startFunctionStub(const Function &F, unsigned StubSize) {
|
|||||||
void *Emitter::finishFunctionStub(const Function &F) {
|
void *Emitter::finishFunctionStub(const Function &F) {
|
||||||
NumBytes += CurByte-CurBlock;
|
NumBytes += CurByte-CurBlock;
|
||||||
DEBUG(std::cerr << "Finished CodeGen of [0x" << std::hex
|
DEBUG(std::cerr << "Finished CodeGen of [0x" << std::hex
|
||||||
<< (unsigned)(intptr_t)CurBlock
|
<< (uintptr_t)CurBlock
|
||||||
<< std::dec << "] Function stub for: " << F.getName()
|
<< std::dec << "] Function stub for: " << F.getName()
|
||||||
<< ": " << CurByte-CurBlock << " bytes of text\n");
|
<< ": " << CurByte-CurBlock << " bytes of text\n");
|
||||||
std::swap(CurBlock, SavedCurBlock);
|
std::swap(CurBlock, SavedCurBlock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user