[llvm] [BOLT] Fix EH data encoding checks in relocateEHFrameSection (PR #196777)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Sun May 10 15:49:11 PDT 2026
================
@@ -2162,13 +2162,11 @@ void RewriteInstance::relocateEHFrameSection() {
return;
// Only fix references that are relative to other locations.
- if (!(DwarfType & dwarf::DW_EH_PE_pcrel) &&
- !(DwarfType & dwarf::DW_EH_PE_textrel) &&
- !(DwarfType & dwarf::DW_EH_PE_funcrel) &&
- !(DwarfType & dwarf::DW_EH_PE_datarel))
- return;
-
- if (!(DwarfType & dwarf::DW_EH_PE_sdata4))
+ const uint64_t Mask = 0xf0 & ~dwarf::DW_EH_PE_indirect;
----------------
aaupov wrote:
Any way to avoid a magic constant?
https://github.com/llvm/llvm-project/pull/196777
More information about the llvm-commits
mailing list