In the PPC64 target we map toc-relative relocations, dynamic thread pointer relative relocations and got relocations into a corresponding ADDR16 relocation type for handling in relocateOne. This patch saves the orignal RelType before mapping to an ADDR16 relocation so that any diagnostic messages will not mistakenly use the mapped type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/Arch/PPC64.cpp | ||
---|---|---|
615–617 ↗ | (On Diff #180697) | Where are you using this variable to check whether toc-optimize should be done or not? |
ELF/Arch/PPC64.cpp | ||
---|---|---|
615–617 ↗ | (On Diff #180697) | I'm not using the new variable since the call to isTocOptType comes before we map the relocations to an addr16 type and Type is still the original type. With the comment I'm trying to convey there is an explicit dependency between isTocOptType and toAddr16Rel. |
ELF/Arch/PPC64.cpp | ||
---|---|---|
614 ↗ | (On Diff #180697) | Please remove this excessive empty line. |