[llvm] [TOOLS][DWARFDUMP][DWARF] Print full DIE offset for a CU or local TU (PR #121877)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 11:12:26 PST 2025


================
@@ -0,0 +1,399 @@
+## Test that full DIE offset is printed out for CU and local TU in the comment form.
+
+# RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-linux-gnu -o %t.o
+# RUN: ld.lld %t.o -o %t.exe
+# RUN: llvm-dwarfdump -debug-info -debug-names %t.exe | FileCheck %s
+
+# CHECK: Type Unit:
+# CHECK: [[OFFSET:0x[0-9a-f]*]]:   DW_TAG_class_type
+# CHECK: [[OFFSET1:0x[0-9a-f]*]]:   DW_TAG_base_type
+# CHECK: Compile Unit
+# CHECK: [[OFFSET2:0x[0-9a-f]*]]:   DW_TAG_variable
+# CHECK: [[OFFSET3:0x[0-9a-f]*]]:   DW_TAG_base_type
+# CHECK: [[OFFSET4:0x[0-9a-f]*]]:   DW_TAG_variable
+
+# CHECK: Bucket 0
+# CHECK: Tag: DW_TAG_variable
+# CHECK-NEXT: DW_IDX_die_offset: 0x0000002e	// [[OFFSET4]]
----------------
clayborg wrote:

Why are there extra spaces here and not extra spaces on line 20, 24, 28 and 31?

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


More information about the llvm-commits mailing list