[llvm-branch-commits] [WIP] IR: Introduce !elf_section_properties for setting section properties. (PR #149260)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 16 23:13:47 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/CodeGen/TargetLoweringObjectFileImpl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 2c523b58d..8b2ffb6cb 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -820,13 +820,13 @@ getGlobalObjectInfo(const GlobalObject *GO, const TargetMachine &TM,
unsigned Type, EntrySize;
if (MDNode *MD = GO->getMetadata(LLVMContext::MD_elf_section_properties)) {
Type = cast<ConstantAsMetadata>(MD->getOperand(0))
- ->getValue()
- ->getUniqueInteger()
- .getZExtValue();
+ ->getValue()
+ ->getUniqueInteger()
+ .getZExtValue();
EntrySize = cast<ConstantAsMetadata>(MD->getOperand(1))
- ->getValue()
- ->getUniqueInteger()
- .getZExtValue();
+ ->getValue()
+ ->getUniqueInteger()
+ .getZExtValue();
} else {
Type = getELFSectionType(SectionName, Kind);
EntrySize = getEntrySizeForKind(Kind);
``````````
</details>
https://github.com/llvm/llvm-project/pull/149260
More information about the llvm-branch-commits
mailing list