[llvm] Implement the DWARF 6 language and version attributes. (PR #89980)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 13:00:05 PDT 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 9e9595183001991a7d31d8880c4a2b33594ca30f 04c30f9f89435d043df930974dad9ec7859e2d8d -- llvm/include/llvm-c/DebugInfo.h llvm/include/llvm/BinaryFormat/Dwarf.h llvm/lib/BinaryFormat/Dwarf.cpp llvm/unittests/BinaryFormat/DwarfTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h
index 7b737978b2..2c3c75e246 100644
--- a/llvm/include/llvm-c/DebugInfo.h
+++ b/llvm/include/llvm-c/DebugInfo.h
@@ -127,7 +127,7 @@ typedef enum {
LLVMDWARFSourceLanguageAda2012,
LLVMDWARFSourceLanguageHIP,
LLVMDWARFSourceLanguageAssembly,
- LLVMDWARFSourceLanguageC_sharp,
+ LLVMDWARFSourceLanguageC_sharp,
LLVMDWARFSourceLanguageMojo,
LLVMDWARFSourceLanguageGLSL,
LLVMDWARFSourceLanguageGLSL_ES,
@@ -138,7 +138,7 @@ typedef enum {
LLVMDWARFSourceLanguageRuby,
LLVMDWARFSourceLanguageMove,
LLVMDWARFSourceLanguageHylo,
-
+
// Vendor extensions:
LLVMDWARFSourceLanguageMips_Assembler,
LLVMDWARFSourceLanguageGOOGLE_RenderScript,
diff --git a/llvm/include/llvm/BinaryFormat/Dwarf.h b/llvm/include/llvm/BinaryFormat/Dwarf.h
index 199ad505a4..fcca6a3dd2 100644
--- a/llvm/include/llvm/BinaryFormat/Dwarf.h
+++ b/llvm/include/llvm/BinaryFormat/Dwarf.h
@@ -381,7 +381,8 @@ toDW_LNAME(SourceLanguage language) {
case DW_LANG_C_plus_plus:
return {{DW_LNAME_C_plus_plus, 0}};
case DW_LANG_C_plus_plus_03:
- return {{DW_LNAME_C_plus_plus, 200312}}; // FIXME: Look up the correct months.
+ return {
+ {DW_LNAME_C_plus_plus, 200312}}; // FIXME: Look up the correct months.
case DW_LANG_C_plus_plus_11:
return {{DW_LNAME_C_plus_plus, 201103}};
case DW_LANG_C_plus_plus_14:
@@ -417,7 +418,7 @@ toDW_LNAME(SourceLanguage language) {
case DW_LANG_Haskell:
return {{DW_LNAME_Haskell, 0}};
case DW_LANG_HIP:
- return {}; //return {{DW_LNAME_HIP, 0}};
+ return {}; // return {{DW_LNAME_HIP, 0}};
case DW_LANG_Java:
return {{DW_LNAME_Java, 0}};
case DW_LANG_Julia:
``````````
</details>
https://github.com/llvm/llvm-project/pull/89980
More information about the llvm-commits
mailing list