[llvm] [RISCV] Put p2align at the beginning of .note.gnu.property section. (PR #151436)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 22:31:50 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 -- llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
index b5d1b6c38..1315e59c2 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
@@ -99,7 +99,7 @@ void RISCVTargetStreamer::emitNoteGnuPropertySection(
OutStreamer.emitIntValue(4, 4); // pr_datasz
OutStreamer.emitIntValue(Feature1And, 4); // pr_data
if (Triple.isArch64Bit())
- OutStreamer.emitIntValue(0, 4); // pr_padding
+ OutStreamer.emitIntValue(0, 4); // pr_padding
OutStreamer.popSection();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/151436
More information about the llvm-commits
mailing list