OSDN Git Service

[MCJIT] Fix format specifiers for debug output in RuntimeDyld.
authorLang Hames <lhames@gmail.com>
Thu, 28 Aug 2014 04:25:17 +0000 (04:25 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 28 Aug 2014 04:25:17 +0000 (04:25 +0000)
More work on http://llvm.org/PR20640

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

index 701428f..7693fd5 100644 (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);
 
index 9e4d3ac..a22689a 100644 (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";
 }