[lld] [LLD] [MinGW] Fall back to using default target if no -m flag given. (PR #134700)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 11:12:05 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- lld/MinGW/Driver.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index abe88cab1..222ee3a93 100644
--- a/lld/MinGW/Driver.cpp
+++ b/lld/MinGW/Driver.cpp
@@ -171,9 +171,8 @@ searchLibrary(StringRef name, ArrayRef<StringRef> searchPaths, bool bStatic) {
return "";
}
-static bool
-isI386Target(const opt::InputArgList &args, const Triple &defaultTarget)
-{
+static bool isI386Target(const opt::InputArgList &args,
+ const Triple &defaultTarget) {
auto *a = args.getLastArg(OPT_m);
if (a)
return StringRef(a->getValue()) == "i386pe";
``````````
</details>
https://github.com/llvm/llvm-project/pull/134700
More information about the llvm-commits
mailing list