[llvm] [llvm-ar][GOFF] Implement symbol attributes for GOFF archives (PR #214528)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 21:51:23 PDT 2026
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 h,cpp -- llvm/include/llvm/Object/GOFFObjectFile.h llvm/lib/Object/ArchiveWriter.cpp llvm/lib/Object/GOFFObjectFile.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/llvm/lib/Object/GOFFObjectFile.cpp b/llvm/lib/Object/GOFFObjectFile.cpp
index e7bf4e887..572d8a156 100644
--- a/llvm/lib/Object/GOFFObjectFile.cpp
+++ b/llvm/lib/Object/GOFFObjectFile.cpp
@@ -543,8 +543,8 @@ uint32_t GOFFObjectFile::getZOSSymbolArchiveAttributes(DataRefImpl Symb) const {
// query the parent ED.
// TODO: The parent-walk path (child ESD_AMODE_None with a parent that has
// ESD_AMODE_64) cannot currently be tested as GOFFObjectWriter always emits
- // ESD_AMODE_64 directly on LD/ER records and does not set AMODE on ED records.
- // Full coverage requires yaml2obj GOFF ESD record support.
+ // ESD_AMODE_64 directly on LD/ER records and does not set AMODE on ED
+ // records. Full coverage requires yaml2obj GOFF ESD record support.
GOFF::ESDAmode Amode;
ESDRecord::getAmode(SymRecord, Amode);
if (Amode == GOFF::ESD_AMODE_None) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/214528
More information about the llvm-commits
mailing list