From: Lang Hames Date: Thu, 28 Aug 2014 04:25:17 +0000 (+0000) Subject: [MCJIT] Fix format specifiers for debug output in RuntimeDyld. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41db8128a2d7d34dbca8cb1906135e0a34b2f31f;p=oota-llvm.git [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 --- diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 701428f5ef9..7693fd5d0e7 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -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); diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 9e4d3ac82af..a22689a40d9 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -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"; }