[llvm] [LLVM] support for DW_OP_GNU_implicit_pointer (PR #142913)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 02:47:27 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/DebugInfo/DWARF/DWARFExpression.cpp llvm/lib/DebugInfo/LogicalView/Core/LVLocation.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp b/llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
index 17e816a1e..3f6695ef2 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
@@ -105,7 +105,7 @@ static std::vector<Desc> getOpDescriptions() {
   Descriptions[DW_OP_GNU_const_index] = Desc(Op::Dwarf4, Op::SizeLEB);
   Descriptions[DW_OP_GNU_entry_value] = Desc(Op::Dwarf4, Op::SizeLEB);
   Descriptions[DW_OP_GNU_implicit_pointer] =
-    Desc(Op::Dwarf4, Op::SizeRefAddr, Op::SignedSizeLEB);
+      Desc(Op::Dwarf4, Op::SizeRefAddr, Op::SignedSizeLEB);
   // This Description acts as a marker that getSubOpDesc must be called
   // to fetch the final Description for the operation. Each such final
   // Description must share the same first SizeSubOpLEB operand.

``````````

</details>


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


More information about the llvm-commits mailing list