[llvm] Allow multi-member variants in DWARF (PR #139300)

Tom Tromey via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 08:02:21 PDT 2025


================
@@ -0,0 +1,74 @@
+; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
+; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
+
+; Check for a variant part where a variant has multiple members.
+
+; CHECK: DW_AT_name [DW_FORM_str{{[a-z]+}}]  ({{.*}} = "Discr")
----------------
tromey wrote:

FWIW it showed up on AIX for my previous patch, and then when I copy-pasted the test case for the new patch, I copied from the wrong version.  The issue for AIX was that it used a different form for the string constants.

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


More information about the llvm-commits mailing list