diff options
author | Fangrui Song <i@maskray.me> | 2021-06-21 14:32:25 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-06-21 14:32:25 -0700 |
commit | c618692218d16e88fa20df56b29a8dd09c9e9db7 (patch) | |
tree | c47199aeb2e870d782cc6cde3bd14aacf1aa34dd /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 3996311ee1b0a3c29a3ffcf9400e12ca76a846d9 (diff) | |
download | llvm-c618692218d16e88fa20df56b29a8dd09c9e9db7.zip llvm-c618692218d16e88fa20df56b29a8dd09c9e9db7.tar.gz llvm-c618692218d16e88fa20df56b29a8dd09c9e9db7.tar.bz2 |
[AArch64][X86] Allow 64-bit label differences lower to IMAGE_REL_*_REL32
`IMAGE_REL_ARM64_REL64/IMAGE_REL_AMD64_REL64` do not exist and `.quad a - .` is
currently not representable.
For instrumentation, `.quad a - .` is useful representing a cross-section
reference in a metadata section, to allow ELF medium/large code models. The COFF
limitation makes such generic instrumentations inconvenient. I plan to make a
PGO/coverage metadata section field relative in D104556.
Differential Revision: https://reviews.llvm.org/D104564
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions