[llvm] Add STACK_SIZES section for MachOS. (PR #77106)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 07:20:13 PST 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 591fc4f5242adf2f4d2dbd301c21be578b9b9278 e939dbedfa4cd875858825e890310d2581bfa525 -- llvm/lib/MC/MCObjectFileInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index c7932be7e8..a069e07bf5 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -316,8 +316,8 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
RemarksSection = Ctx->getMachOSection(
"__LLVM", "__remarks", MachO::S_ATTR_DEBUG, SectionKind::getMetadata());
- StackSizesSection = Ctx->getMachOSection("__STACK_SIZES", "__stack_sizes",
- 0, SectionKind::getData());
+ StackSizesSection = Ctx->getMachOSection("__STACK_SIZES", "__stack_sizes", 0,
+ SectionKind::getData());
// The architecture of dsymutil makes it very difficult to copy the Swift
// reflection metadata sections into the __TEXT segment, so dsymutil creates
``````````
</details>
https://github.com/llvm/llvm-project/pull/77106
More information about the llvm-commits
mailing list