[MCJIT] Fix format specifiers for debug output in RuntimeDyld.

More work on http://llvm.org/PR20640



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2014-08-28 04:25:17 +00:00
parent 5283829707
commit 41db8128a2
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
while (BytesRemaining > 0) {
if ((LoadAddr & (ColsPerRow - 1)) == 0)
dbgs() << "\n" << format("0x%08x", LoadAddr) << ":";
dbgs() << "\n" << format("0x%016" PRIx64, LoadAddr) << ":";
dbgs() << " " << format("%02x", *DataAddr);

View File

@ -115,8 +115,8 @@ void RuntimeDyldMachO::dumpRelocationToResolve(const RelocationEntry &RE,
dbgs() << "resolveRelocation Section: " << RE.SectionID
<< " LocalAddress: " << format("%p", LocalAddress)
<< " FinalAddress: " << format("0x%x", FinalAddress)
<< " Value: " << format("0x%x", Value) << " Addend: " << RE.Addend
<< " FinalAddress: " << format("0x%016" PRIx64, FinalAddress)
<< " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend
<< " isPCRel: " << RE.IsPCRel << " MachoType: " << RE.RelType
<< " Size: " << (1 << RE.Size) << "\n";
}