aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-01-26 09:25:38 -0800
committerGitHub <noreply@github.com>2024-01-26 09:25:38 -0800
commit36b4a9ccd9f7e04010476e6b2a311f2052a4ac20 (patch)
tree0ea881fac57f864b21f2a4f9555babf51d9d1264 /lldb/source/Commands/CommandObjectProcess.cpp
parent9b48aa203a59503177567e08a879cf1ba6f2b856 (diff)
downloadllvm-36b4a9ccd9f7e04010476e6b2a311f2052a4ac20.zip
llvm-36b4a9ccd9f7e04010476e6b2a311f2052a4ac20.tar.gz
llvm-36b4a9ccd9f7e04010476e6b2a311f2052a4ac20.tar.bz2
[Driver,CodeGen] Support -mtls-dialect= (#79256)
GCC supports -mtls-dialect= for several architectures to select TLSDESC. This patch supports the following values * x86: "gnu". "gnu2" (TLSDESC) is not supported yet. * RISC-V: "trad" (general dynamic), "desc" (TLSDESC, see #66915) AArch64 toolchains seem to support TLSDESC from the beginning, and the general dynamic model has poor support. Nobody seems to use the option -mtls-dialect= at all, so we don't bother with it. There also seems very little interest in AArch32's TLSDESC support. TLSDESC does not change IR, but affects object file generation. Without a backend option the option is a no-op for in-process ThinLTO. There seems no motivation to have fine-grained control mixing trad/desc for TLS, so we just pass -mllvm, and don't bother with a modules flag metadata or function attribute. Co-authored-by: Paul Kirth <paulkirth@google.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions