[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 21 05:51:49 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 7786266dc7b4e89feadcb01ff21f9e3cf2022a6b 4470abcfd40cfd8a15b9a24a94c9a0b302ad70bd --extensions cpp,h -- clang/lib/CodeGen/CGDebugInfo.cpp llvm/include/llvm/BinaryFormat/Dwarf.h llvm/include/llvm/IR/DIBuilder.h llvm/include/llvm/IR/DebugInfoMetadata.h llvm/lib/AsmParser/LLParser.cpp llvm/lib/Bitcode/Reader/MetadataLoader.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp llvm/lib/IR/AsmWriter.cpp llvm/lib/IR/DIBuilder.cpp llvm/lib/IR/DebugInfo.cpp llvm/lib/IR/DebugInfoMetadata.cpp llvm/lib/Transforms/Coroutines/CoroSplit.cpp llvm/unittests/CodeGen/MachineInstrTest.cpp llvm/unittests/IR/DebugInfoTest.cpp llvm/unittests/IR/IRBuilderTest.cpp llvm/unittests/IR/MetadataTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 01a2ef9c62..424d29cdfc 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -5678,7 +5678,8 @@ bool LLParser::parseDISubprogram(MDNode *&Result, bool IsDistinct) {
     parsedShortBacktrace = ShortBacktraceAttr::EndShortBacktrace;
     break;
   default:
-    llvm_unreachable("shortBacktrace debuginfo attribute must be in range [-1, 2]");
+    llvm_unreachable(
+        "shortBacktrace debuginfo attribute must be in range [-1, 2]");
   }
 
   // An explicit spFlags field takes precedence over individual fields in

``````````

</details>


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


More information about the cfe-commits mailing list