LLVM does not support Emulated TLS for some architectures, like RISCV.
This patch issues an error during options parsing to avoid potential
problems during codegen.
Bug: https://github.com/llvm/llvm-project/issues/59500
Depends on D143619
Differential D143692
[clang][driver] Emit error when enabling emulated tls on unsupported architectures paulkirth on Feb 9 2023, 4:29 PM. Authored by
Details
LLVM does not support Emulated TLS for some architectures, like RISCV. Bug: https://github.com/llvm/llvm-project/issues/59500 Depends on D143619
Diff Detail
Event TimelineComment Actions Address comments.
Comment Actions With nits
Comment Actions Based on discussion at the LLVM RISC-V community call, we're going to support emulated TLS in RISC-V, so we can abandon this patch. |
Use render and remove the previous Args.AddLastArg(CmdArgs, options::OPT_femulated_tls, options::OPT_fno_emulated_tls);