[llvm] [BOLT][NFC] Clarify requirement of PLTCall pass (PR #164280)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 09:33:12 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 -- bolt/lib/Passes/PLTCall.cpp --diff_from_common_commit
``````````
: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/bolt/lib/Passes/PLTCall.cpp b/bolt/lib/Passes/PLTCall.cpp
index db0e8f93f..18e17bd15 100644
--- a/bolt/lib/Passes/PLTCall.cpp
+++ b/bolt/lib/Passes/PLTCall.cpp
@@ -22,16 +22,17 @@ namespace opts {
extern cl::OptionCategory BoltOptCategory;
-static cl::opt<bolt::PLTCall::OptType>
- PLT("plt", cl::desc("optimize PLT calls (sets DF_BIND_NOW/DF_1_NOW in the output binary)"),
- cl::init(bolt::PLTCall::OT_NONE),
- cl::values(clEnumValN(bolt::PLTCall::OT_NONE, "none",
- "do not optimize PLT calls"),
- clEnumValN(bolt::PLTCall::OT_HOT, "hot",
- "optimize executed (hot) PLT calls"),
- clEnumValN(bolt::PLTCall::OT_ALL, "all",
- "optimize all PLT calls")),
- cl::ZeroOrMore, cl::cat(BoltOptCategory));
+static cl::opt<bolt::PLTCall::OptType> PLT(
+ "plt",
+ cl::desc(
+ "optimize PLT calls (sets DF_BIND_NOW/DF_1_NOW in the output binary)"),
+ cl::init(bolt::PLTCall::OT_NONE),
+ cl::values(
+ clEnumValN(bolt::PLTCall::OT_NONE, "none", "do not optimize PLT calls"),
+ clEnumValN(bolt::PLTCall::OT_HOT, "hot",
+ "optimize executed (hot) PLT calls"),
+ clEnumValN(bolt::PLTCall::OT_ALL, "all", "optimize all PLT calls")),
+ cl::ZeroOrMore, cl::cat(BoltOptCategory));
}
namespace llvm {
``````````
</details>
https://github.com/llvm/llvm-project/pull/164280
More information about the llvm-commits
mailing list