[llvm] Fix test case failure due to Commit aa50eb69 DwarfDebug: Move emission of types from beginModule() to endModule() (PR #212805)
Daniel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 08:51:36 PDT 2026
https://github.com/DanielCChen created https://github.com/llvm/llvm-project/pull/212805
Commit `aa50eb69 ("DwarfDebug: Move emission of types from beginModule() to endModule()") ` added new CHECK lines to `debug-info-qualifiers.ll` that broke on XCOFF/AIX in two ways:
(1) `CHECK-NOT: DW_TAG_subprogram` tripped on abbrev table entries printed before .debug_info, and
(2) the pattern `{{.*}} "g")` had a space/paren mismatch against the AIX dwarfdump output format
This PR is fix that by adding `; CHECK: .debug_info contents: ` anchor and changed the pattern to `{{.*}}"g"` in the test file
>From 4d6251df89fe1ec320da7812ef9806a626eff5f7 Mon Sep 17 00:00:00 2001
From: Daniel Chen <cdchen at ca.ibm.com>
Date: Wed, 29 Jul 2026 11:45:47 -0400
Subject: [PATCH] =?UTF-8?q?Fix=20test=20case=20failure=20due=20to=20Commit?=
=?UTF-8?q?=C2=A0aa50eb69=C2=A0DwarfDebug:=20Move=20emission=20of=20types?=
=?UTF-8?q?=20from=20beginModule()=20to=20endModule()?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll b/llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll
index e2b6f8b6933c6..b6ea1ba3c9e7b 100644
--- a/llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll
+++ b/llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll
@@ -19,9 +19,13 @@
; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes
; CHECK-NEXT: DW_AT_rvalue_reference DW_FORM_flag_present
+; The abbrev table (printed before .debug_info on some targets, e.g. XCOFF/AIX)
+; may contain multiple DW_TAG_subprogram entries that would trip the CHECK-NOT
+; below. Anchor to .debug_info contents: to skip past the abbrev section.
+; CHECK: .debug_info contents:
; CHECK: DW_TAG_subprogram
; CHECK-NOT: DW_TAG_subprogram
-; CHECK: DW_AT_name {{.*}} "g")
+; CHECK: DW_AT_name {{.*}}"g"
;
; CHECK: DW_TAG_subprogram
; CHECK-NOT: DW_TAG_subprogram
More information about the llvm-commits
mailing list