Fixed format string to avoid pointer truncation during 64-bit debugging.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Kaylor 2012-11-01 19:49:21 +00:00
parent 8aa138c122
commit 5fc8c7cb85

View File

@ -203,7 +203,7 @@ void RuntimeDyldImpl::emitCommonSymbols(ObjectImage &Obj,
Addr += AlignOffset;
Offset += AlignOffset;
DEBUG(dbgs() << "Allocating common symbol " << Name << " address " <<
format("0x%x\n", Addr));
format("%p\n", Addr));
}
Obj.updateSymbolAddress(it->first, (uint64_t)Addr);
SymbolTable[Name.data()] = SymbolLoc(SectionID, Offset);