[clang] [LinkerWrapper] Forward `-mllvm` and `--offload-opt` arguments to device (PR #100424)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 14:03:44 PDT 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 888ae9066da9c9758c03e839be6cefb3246a9b1c 78667b2fd0d24e2089af55ca757be8a4bf0b063f --extensions cpp,c -- clang/test/Driver/linker-wrapper-passes.c clang/test/Driver/linker-wrapper.c clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index dfb7236402..a8be437c26 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -543,7 +543,8 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args) {
CmdArgs.push_back(Args.MakeArgString(Val));
} else if (consumeOpt(Val, "--pass-remarks-hotness-threshold=")) {
CmdArgs.push_back(Args.MakeArgString("-Xlinker"));
- CmdArgs.push_back(Args.MakeArgString("--opt-remarks-hotness-threshold"));
+ CmdArgs.push_back(
+ Args.MakeArgString("--opt-remarks-hotness-threshold"));
CmdArgs.push_back(Args.MakeArgString("-Xlinker"));
CmdArgs.push_back(Args.MakeArgString(Val));
} else if (consumeOpt(Val, "--pass-remarks-output=")) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/100424
More information about the cfe-commits
mailing list