diff options
author | Dan Gohman <dev@sunfishcode.online> | 2022-05-20 15:16:10 -0700 |
---|---|---|
committer | Dan Gohman <dev@sunfishcode.online> | 2022-05-20 15:18:19 -0700 |
commit | 59726668f1dcb32883de4cf027fe3585ca384cf5 (patch) | |
tree | 0f40693f823706cfc5c93c50b29673a9e3ef0744 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | b369762beb70dfef22c7e793aed79b94d7dc0757 (diff) | |
download | llvm-59726668f1dcb32883de4cf027fe3585ca384cf5.zip llvm-59726668f1dcb32883de4cf027fe3585ca384cf5.tar.gz llvm-59726668f1dcb32883de4cf027fe3585ca384cf5.tar.bz2 |
[WebAssembly] Strip TLS when "atomics" is not enabled
With f3b4f99007cdcb3306484c9a39d31addc20aaa69, the exclusive source of
truth for whether threads are supported is the -matomics flag.
Accordingly, strip TLS flags when -matomic is not specified, even if
bulk-memory is specified and it would theoretically be supportable.
This allows the backend to compile TLS variables when -mbulk-memory is
enabled but threads are not enabled.
Differential Revision: https://reviews.llvm.org/D125730
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions