Files
clang-p2996/llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
Fangrui Song 2ef56d16ad [RISCV] relaxDwarfCallFrameFragment: remove unneeded relocations for relaxation
If `evaluateAsAbsolute(Value, Layout.getAssembler())` returns true, we
know the address delta is a constant and can suppress relocations
(usually SET6/SUB6).

While here, replace one evaluateKnownAbsolute call (subtle for Mach-O
workarounds; avoid if possible) with evaluateAsAbsolute.
2023-06-16 12:15:06 -07:00

24 KiB