[clang] [MS] Add /Zc:tlsGuards option to control tls guard emission (PR #113830)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 13:39:53 PDT 2024


================
@@ -186,6 +186,7 @@ COMPATIBLE_LANGOPT(RecoveryAST, 1, 1, "Preserve expressions in AST when encounte
 COMPATIBLE_LANGOPT(RecoveryASTType, 1, 1, "Preserve the type in recovery expressions")
 
 BENIGN_LANGOPT(ThreadsafeStatics , 1, 1, "thread-safe static initializers")
+BENIGN_LANGOPT(TlsGuards , 1, 1, "on-demand TLS initialization")
----------------
efriedma-quic wrote:

Should this be a CODEGENOPT instead of a LANGOPT?  I guess it's not a big difference either way.  (ThreadsafeStatics is a LANGOPT because it also controls a preprocessor define.)

https://github.com/llvm/llvm-project/pull/113830


More information about the cfe-commits mailing list