diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-11-26 19:14:34 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-11-26 19:14:34 +0000 |
commit | 9a9fe4da63f334f8766e839fb390d96747898f7b (patch) | |
tree | d3e46808c65a817d9b0ae42334568148d928ba29 /test/DebugInfo | |
parent | 4f1fde9d185aa739686ad344a8d816a64c3c1cee (diff) |
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
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/X86/generate-odr-hash.ll | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/test/DebugInfo/X86/generate-odr-hash.ll b/test/DebugInfo/X86/generate-odr-hash.ll index 8ff367fa675..df86576462e 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 } |