[clang] [clang][driver] Enable '-flto' on bare-metal (PR #94738)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 02:16:12 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 ac404632f991fc6e7dc75ef553a99676ba8002ce 8150a6529be5a3be65e49d5440c576d856d404d5 -- clang/test/Driver/baremetal-ld.c clang/lib/Driver/ToolChains/BareMetal.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/BareMetal.cpp b/clang/lib/Driver/ToolChains/BareMetal.cpp
index d1bd782141..dd365e62e0 100644
--- a/clang/lib/Driver/ToolChains/BareMetal.cpp
+++ b/clang/lib/Driver/ToolChains/BareMetal.cpp
@@ -467,7 +467,6 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,
TC.AddLinkRuntimeLib(Args, CmdArgs);
}
-
if (D.isUsingLTO()) {
assert(!Inputs.empty() && "Must have at least one input.");
// Find the first filename InputInfo object.
``````````
</details>
https://github.com/llvm/llvm-project/pull/94738
More information about the cfe-commits
mailing list