[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 701428f5ef9be3067629db5f1b0947dca7ae2464..7693fd5d0e7f6ce89bf6011eb199f3de07b76a70 100644 (file)
@@ -61,7 +61,7 @@ static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
 
   while (BytesRemaining > 0) {
     if ((LoadAddr & (ColsPerRow - 1)) == 0)
 
   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);
 
 
     dbgs() << " " << format("%02x", *DataAddr);
 
index 9e4d3ac82afb3d21cd86cf60a244d572fc580b34..a22689a40d926adee25ed450bc15a09d913dda49 100644 (file)
@@ -115,8 +115,8 @@ void RuntimeDyldMachO::dumpRelocationToResolve(const RelocationEntry &RE,
 
   dbgs() << "resolveRelocation Section: " << RE.SectionID
          << " LocalAddress: " << format("%p", LocalAddress)
 
   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";
 }
          << " isPCRel: " << RE.IsPCRel << " MachoType: " << RE.RelType
          << " Size: " << (1 << RE.Size) << "\n";
 }