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

Lang Hames lhames at gmail.com
Wed Aug 27 21:25:17 PDT 2014


Author: lhames
Date: Wed Aug 27 23:25:17 2014
New Revision: 216648

URL: http://llvm.org/viewvc/llvm-project?rev=216648&view=rev
Log:
[MCJIT] Fix format specifiers for debug output in RuntimeDyld.

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


Modified:
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=216648&r1=216647&r2=216648&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Wed Aug 27 23:25:17 2014
@@ -61,7 +61,7 @@ static void dumpSectionMemory(const Sect
 
   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);
 

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp?rev=216648&r1=216647&r2=216648&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp Wed Aug 27 23:25:17 2014
@@ -115,8 +115,8 @@ void RuntimeDyldMachO::dumpRelocationToR
 
   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";
 }





More information about the llvm-commits mailing list