[llvm] d561d1b - [JITLink][AArch64] Improve debug output for addend relocations.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 5 08:51:43 PDT 2020
Author: Lang Hames
Date: 2020-08-05T08:50:46-07:00
New Revision: d561d1bf96354c10ca664c20b5268d156a9a3da3
URL: https://github.com/llvm/llvm-project/commit/d561d1bf96354c10ca664c20b5268d156a9a3da3
DIFF: https://github.com/llvm/llvm-project/commit/d561d1bf96354c10ca664c20b5268d156a9a3da3.diff
LOG: [JITLink][AArch64] Improve debug output for addend relocations.
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp b/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
index 226955fbceb4..e5607e4d51f8 100644
--- a/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
@@ -272,11 +272,12 @@ class MachOLinkGraphBuilder_arm64 : public MachOLinkGraphBuilder {
return make_error<JITLinkError>(
"Invalid relocation pair: Addend + " +
getMachOARM64RelocationKindName(*Kind));
- else
- LLVM_DEBUG({
- dbgs() << " pair is " << getMachOARM64RelocationKindName(*Kind)
- << "`\n";
- });
+
+ LLVM_DEBUG({
+ dbgs() << " Addend: value = " << formatv("{0:x6}", Addend)
+ << ", pair is " << getMachOARM64RelocationKindName(*Kind)
+ << "\n";
+ });
// Find the address of the value to fix up.
JITTargetAddress PairedFixupAddress =
More information about the llvm-commits
mailing list