From 9a9fe4da63f334f8766e839fb390d96747898f7b Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 26 Nov 2013 19:14:34 +0000 Subject: DwarfDebug: Include type units in accelerator tables. Since type units aren't in the CUMap, use the DwarfUnits list to iterate over units for tasks such as accelerator table building. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195776 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/X86/generate-odr-hash.ll | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'test/DebugInfo/X86') diff --git a/test/DebugInfo/X86/generate-odr-hash.ll b/test/DebugInfo/X86/generate-odr-hash.ll index 8ff367fa67..df86576462 100644 --- a/test/DebugInfo/X86/generate-odr-hash.ll +++ b/test/DebugInfo/X86/generate-odr-hash.ll @@ -91,11 +91,29 @@ ; CHECK: DW_TAG_structure_type ; CHECK-NEXT: debug_str{{.*}}"wombat" -; Don't emit pubtype entries for type DIEs in the compile unit that just indirect to a type unit. +; Use the unit size as a rough hash/identifier for the unit we're dealing with +; it happens to be unambiguous at the moment, but it's hardly ideal. ; CHECK-LABEL: .debug_pubtypes contents: -; CHECK-NEXT: unit_offset = 0x00000000 -; CHECK-NEXT: Offset -; CHECK-NEXT: {{^$}} +; Don't emit pubtype entries for type DIEs in the compile unit that just indirect to a type unit. +; CHECK-NEXT: unit_size = 0x00000174 +; CHECK-NEXT: Offset Name +; Type unit for 'bar' +; CHECK-NEXT: unit_size = 0x0000001f +; CHECK-NEXT: Offset Name +; CHECK-NEXT: "bar" +; CHECK-NEXT: unit_size = 0x00000059 +; CHECK-NEXT: Offset Name +; CHECK-NEXT: "int" +; CHECK-NEXT: "echidna::capybara::mongoose::fluffy" +; CHECK-NEXT: unit_size = 0x0000002f +; CHECK-NEXT: Offset Name +; CHECK-NEXT: "walrus" +; CHECK-NEXT: unit_size = 0x0000003f +; CHECK-NEXT: Offset Name +; CHECK-NEXT: "int" +; CHECK-NEXT: unit_size = 0x00000036 +; CHECK-NEXT: Offset Name +; CHECK-NEXT: "wombat" %struct.bar = type { i8 } %"class.echidna::capybara::mongoose::fluffy" = type { i32, i32 } -- cgit v1.2.3