diff options
author | Fangrui Song <i@maskray.me> | 2021-05-11 11:29:45 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-05-11 11:29:45 -0700 |
commit | ec27c5f170441ab54295830aa9f7d376406c6a0f (patch) | |
tree | 8dd87abf46bd3ad109b7445d451d0a2e16aae121 /llvm/tools/llvm-cov/CodeCoverage.cpp | |
parent | 61cbbba7a645a1d87db9a80867c84a788ab2ea9c (diff) | |
download | llvm-ec27c5f170441ab54295830aa9f7d376406c6a0f.zip llvm-ec27c5f170441ab54295830aa9f7d376406c6a0f.tar.gz llvm-ec27c5f170441ab54295830aa9f7d376406c6a0f.tar.bz2 |
[RISCV] Prefer to lower MC_GlobalAddress operands to .Lfoo$local
Similar to X86 D73230 and AArch64 D101872
With this change, we can set dso_local in clang's -fpic -fno-semantic-interposition mode,
for default visibility external linkage non-ifunc-non-COMDAT definitions.
For such dso_local definitions, variable access/taking the address of a
function/calling a function will go through a local alias to avoid GOT/PLT.
Reviewed By: jrtc27, luismarques
Differential Revision: https://reviews.llvm.org/D101875
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions