[clang] [clang][driver] Add -mtls-dialect option (PR #79031)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 10:54:35 PST 2024


================
@@ -401,6 +401,8 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
   Options.UniqueBasicBlockSectionNames =
       CodeGenOpts.UniqueBasicBlockSectionNames;
   Options.TLSSize = CodeGenOpts.TLSSize;
+  // TODO: Add correct codegen options in LLVM
+  // Options.TLSDesc = CodeGenOpts.getDefaultTLSDialect();
----------------
MaskRay wrote:

This should be supported in this patch, otherwise there is no point in ignoring a rarely-used GCC option.

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


More information about the cfe-commits mailing list