[llvm] [DWARFVerifier] Fix debug_str_offsets DWARF version detection (PR #81303)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 11:37:18 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 8bb827c0e67e51adba1252d23edc58197e025cf7 7e965c125bea705daab3a6f02ea799277d3d1cc4 -- llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index f56ac9889a..25a14f4330 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -1907,8 +1907,9 @@ bool DWARFVerifier::handleDebugStrOffsets() {
   return Success;
 }
 
-bool DWARFVerifier::verifyDebugStrOffsets(std::optional<DwarfFormat> LegacyFormat,
-    StringRef SectionName, const DWARFSection &Section, StringRef StrData) {
+bool DWARFVerifier::verifyDebugStrOffsets(
+    std::optional<DwarfFormat> LegacyFormat, StringRef SectionName,
+    const DWARFSection &Section, StringRef StrData) {
   const DWARFObject &DObj = DCtx.getDWARFObj();
 
   DWARFDataExtractor DA(DObj, Section, DCtx.isLittleEndian(), 0);

``````````

</details>


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


More information about the llvm-commits mailing list