[clang] Add no-rosegment by default for API 29 and earlier. (PR #117611)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 15:16:34 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 5f881b7139bba1b8cd5c09ea021c78b92d1e72c9 e8dd4171b8a1518c13b4779c4cdea04b87bd238e --extensions cpp,c -- clang/lib/Driver/ToolChains/Linux.cpp clang/test/Driver/linux-ld.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 83f4df19d4..5df4666beb 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -265,7 +265,8 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
       ExtraOpts.push_back("--no-rosegment");
     }
     if (!Triple.isAndroidVersionLT(28)) {
-      // Android supports relr packing starting with API 28 and had its own flavor
+      // Android supports relr packing starting with API 28 and had its own
+      // flavor
       // (--pack-dyn-relocs=android) starting in API 23.
       // TODO: It's possible to use both with --pack-dyn-relocs=android+relr,
       // but we need to gather some data on the impact of that form before we

``````````

</details>


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


More information about the cfe-commits mailing list