[llvm] [yaml2obj] Allow the creation of note segments without sections (PR #123704)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 23:42:10 PST 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 79231a86846b7dff09497fc58ea1e82e892052bd 56a77a9b749050d72bb53f7f44e54564be73808d --extensions h,cpp -- llvm/include/llvm/ObjectYAML/ELFYAML.h llvm/lib/ObjectYAML/ELFEmitter.cpp llvm/lib/ObjectYAML/ELFYAML.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index 550aa3fed6..0224a69133 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -1635,7 +1635,6 @@ void MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::mapping(
     return;
   }
 
-
   const auto &Obj = *static_cast<ELFYAML::Object *>(IO.getContext());
   if (Obj.getMachine() == ELF::EM_MIPS && Type == ELF::SHT_MIPS_ABIFLAGS) {
     if (!IO.outputting())

``````````

</details>


https://github.com/llvm/llvm-project/pull/123704


More information about the llvm-commits mailing list