diff options
author | dianqk <dianqk@dianqk.net> | 2025-06-28 06:42:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-28 06:42:42 +0800 |
commit | c43282ab69d7ff1b64f8ef5c84eab46e57553075 (patch) | |
tree | 24c4a7074d0d9bb74056982ea418092d6db592c1 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | 75175e72308536dff3225dc885db71343ae85267 (diff) | |
download | llvm-c43282ab69d7ff1b64f8ef5c84eab46e57553075.zip llvm-c43282ab69d7ff1b64f8ef5c84eab46e57553075.tar.gz llvm-c43282ab69d7ff1b64f8ef5c84eab46e57553075.tar.bz2 |
[RelLookupTableConverter] Drop unnamed_addr for GVs in entries to avoid generating GOTPCREL relocations (#146068)
The entry in a relative lookup table is a global variable with a
constant offset, such as `@gv`, `GEP @gv, 1`, and so on.
We cannot only consider the case of a trivial global variable. This PR
handles all cases using the existing `IsConstantOffsetFromGlobal`
function.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
0 files changed, 0 insertions, 0 deletions