[lld] [lld] enable fixup chains by default (PR #79894)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 15:03:35 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 d133ada9460aad6d60393fb1260082e62d640500 6a68bd7d62cf7e1de83faed845c6d2dc25b876a6 -- lld/MachO/Driver.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index 4902cfd9b4..2327185df9 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -1054,17 +1054,18 @@ static bool shouldEmitChainedFixups(const InputArgList &args) {
 
   // https://github.com/apple-oss-distributions/ld64/blob/main/src/ld/ld.hpp#L317-L318
   static const std::array<std::pair<PlatformType, VersionTuple>, 7> minVersion =
-      {{{PLATFORM_MACOS, VersionTuple(13, 0)},
-        {PLATFORM_IOSSIMULATOR, VersionTuple(16, 0)},
-        {PLATFORM_IOS, VersionTuple(13, 4)},
-        {PLATFORM_WATCHOSSIMULATOR, VersionTuple(8, 0)},
-        {PLATFORM_WATCHOS, VersionTuple(7, 0)},
-        {PLATFORM_TVOSSIMULATOR, VersionTuple(15, 0)},
-        {PLATFORM_TVOS, VersionTuple(14, 0)},
+      {{
+          {PLATFORM_MACOS, VersionTuple(13, 0)},
+          {PLATFORM_IOSSIMULATOR, VersionTuple(16, 0)},
+          {PLATFORM_IOS, VersionTuple(13, 4)},
+          {PLATFORM_WATCHOSSIMULATOR, VersionTuple(8, 0)},
+          {PLATFORM_WATCHOS, VersionTuple(7, 0)},
+          {PLATFORM_TVOSSIMULATOR, VersionTuple(15, 0)},
+          {PLATFORM_TVOS, VersionTuple(14, 0)},
       }};
   PlatformType platform = config->platformInfo.target.Platform;
-  const auto *it = llvm::find_if(minVersion,
-                          [&](const auto &p) { return p.first == platform; });
+  const auto *it = llvm::find_if(
+      minVersion, [&](const auto &p) { return p.first == platform; });
 
   // We don't know the versions for other platforms, so default to disabled.
   if (it == minVersion.end())

``````````

</details>


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


More information about the llvm-commits mailing list