[MCJIT] Add command-line argument to llvm-rtdyld to specify target addresses for
[oota-llvm.git] / lib / ExecutionEngine / RuntimeDyld / RuntimeDyld.cpp
index 895ba05bccd8da2240c32e463bd72a2b35b6a1ae..24c346f8e677382a6a03b3b7f700050eca9bd77e 100644 (file)
@@ -695,6 +695,10 @@ void RuntimeDyldImpl::reassignSectionAddress(unsigned SectionID,
   // Addr is a uint64_t because we can't assume the pointer width
   // of the target is the same as that of the host. Just use a generic
   // "big enough" type.
+  DEBUG(dbgs() << "Reassigning address for section "
+               << SectionID << " (" << Sections[SectionID].Name << "): "
+               << format("0x%016x", Sections[SectionID].LoadAddress) << " -> "
+               << format("0x%016x", Addr) << "\n");
   Sections[SectionID].LoadAddress = Addr;
 }