summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-08-25 18:37:38 +0000
committerLang Hames <lhames@gmail.com>2014-08-25 18:37:38 +0000
commit86b08f02c06571f3b110a3eeffd04892765c3bfa (patch)
tree92726fb43f8e776737bc3fa647a1bb0e26bf196c /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
parent21405a86d91b7b2f98712789c7d6cb8fc5533b80 (diff)
downloadbcm5719-llvm-86b08f02c06571f3b110a3eeffd04892765c3bfa.tar.gz
bcm5719-llvm-86b08f02c06571f3b110a3eeffd04892765c3bfa.zip
[MCJIT] Make RuntimeDyld dump section contents in -debug mode.
llvm-svn: 216400
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index 3e27a8b8d55..35736a4df2c 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
@@ -104,8 +104,8 @@ void RuntimeDyldMachO::dumpRelocationToResolve(const RelocationEntry &RE,
dbgs() << "resolveRelocation Section: " << RE.SectionID
<< " LocalAddress: " << format("%p", LocalAddress)
- << " FinalAddress: " << format("%p", FinalAddress)
- << " Value: " << format("%p", Value) << " Addend: " << RE.Addend
+ << " FinalAddress: " << format("0x%x", FinalAddress)
+ << " Value: " << format("0x%x", Value) << " Addend: " << RE.Addend
<< " isPCRel: " << RE.IsPCRel << " MachoType: " << RE.RelType
<< " Size: " << (1 << RE.Size) << "\n";
}
OpenPOWER on IntegriCloud