[llvm] [llvm-dwarfdump] Support for DW_AT_language_name and DW_AT_language_version (PR #162449)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 9 09:13:54 PDT 2025
================
@@ -0,0 +1,35 @@
+# Demonstrate dumping DW_AT_language_version.
+# RUN: llvm-mc -triple=x86_64--linux -filetype=obj < %s | \
+# RUN: llvm-dwarfdump -v - | FileCheck %s
+
+# CHECK: .debug_abbrev contents:
+# CHECK: DW_AT_language_version DW_FORM_data4
+# CHECK: DW_AT_language_version DW_FORM_data2
+# CHECK: .debug_info contents:
+# CHECK: DW_AT_language_version [DW_FORM_data4] (201402)
----------------
adrian-prantl wrote:
Should dwarfdump also translate this into the human-readable version?
i.e.:
```
dwarfdump: DW_AT_language_version (C++17)
dwarfdump -v: DW_AT_language_version (201402)
https://github.com/llvm/llvm-project/pull/162449
More information about the llvm-commits
mailing list