[libcxx] [clang-tools-extra] [flang] [libc] [llvm] [lld] [compiler-rt] [lldb] [clang] [libunwind] [Driver,CodeGen] Support -mtls-dialect= (PR #79256)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 17:55:08 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff bb6a4850553dd4140a5bd63187ec1b14d0b731f9 7953afb6b942ac645c5165bc38e3694265ef4d5d -- clang/test/CodeGen/RISCV/tls-dialect.c clang/test/Driver/tls-dialect.c clang/lib/CodeGen/BackendUtil.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/CommonArgs.cpp clang/lib/Driver/ToolChains/CommonArgs.h llvm/include/llvm/TargetParser/Triple.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 26a032c719..1d6b449f04 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -727,7 +727,8 @@ bool tools::isUseSeparateSections(const llvm::Triple &Triple) {
   return Triple.isPS();
 }
 
-bool tools::isTLSDESCEnabled(const ToolChain &TC, const llvm::opt::ArgList &Args) {
+bool tools::isTLSDESCEnabled(const ToolChain &TC,
+                             const llvm::opt::ArgList &Args) {
   const llvm::Triple &Triple = TC.getEffectiveTriple();
   Arg *A = Args.getLastArg(options::OPT_mtls_dialect_EQ);
   if (!A)

``````````

</details>


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


More information about the cfe-commits mailing list