diff options
author | Amy Kwan <amy.kwan1@ibm.com> | 2023-06-17 00:31:35 -0500 |
---|---|---|
committer | Amy Kwan <amy.kwan1@ibm.com> | 2023-06-19 12:17:30 -0500 |
commit | 706b5472d897ca75ebd210e4109637793288bcf2 (patch) | |
tree | 945657f5d4497965686994c69e2b50939c65082b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | aeb99dc48a58f872465e818d0eda7d9c3f221e06 (diff) | |
download | llvm-706b5472d897ca75ebd210e4109637793288bcf2.zip llvm-706b5472d897ca75ebd210e4109637793288bcf2.tar.gz llvm-706b5472d897ca75ebd210e4109637793288bcf2.tar.bz2 |
[AIX][TLS] Relax front end diagnostics to accept the local-exec TLS model
This patch relaxes the front end AIX diagnostics added in D102070 to accept the
local-exec TLS model, as we plan to support this model in a series of future patches.
The diagnostics are relaxed when local-exec is used as a compiler option to
`-ftls-model=*` and in the `__attribute__((tls_model("local-exec")))` attribute.
Differential Revision: https://reviews.llvm.org/D149596
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f6c04fe..dca8853 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1894,7 +1894,7 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, if (Arg *A = Args.getLastArg(OPT_ftlsmodel_EQ)) { if (T.isOSAIX()) { StringRef Name = A->getValue(); - if (Name != "global-dynamic") + if (Name != "global-dynamic" && Name != "local-exec") Diags.Report(diag::err_aix_unsupported_tls_model) << Name; } } |