[llvm] [llvm-lto2] Added llvm-lto2 -unified-lto descriptions (revised) (PR #155462)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 08:47:10 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 origin/main HEAD --extensions cpp -- llvm/tools/llvm-lto2/llvm-lto2.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp
index 00021c9a3..cf8f83ccd 100644
--- a/llvm/tools/llvm-lto2/llvm-lto2.cpp
+++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp
@@ -207,9 +207,8 @@ static cl::opt<LTO::LTOKind> UnifiedLTOMode(
clEnumValN(LTO::LTOK_UnifiedRegular, "full",
"Regular LTO with Unified LTO enabled"),
clEnumValN(LTO::LTOK_Default, "default",
- "Any LTO mode without Unified LTO. The default mode")
- ),
- cl::value_desc("mode"), cl::init(LTO::LTOK_Default));
+ "Any LTO mode without Unified LTO. The default mode")),
+ cl::value_desc("mode"), cl::init(LTO::LTOK_Default));
static cl::opt<bool> EnableFreestanding(
"lto-freestanding",
``````````
</details>
https://github.com/llvm/llvm-project/pull/155462
More information about the llvm-commits
mailing list