summaryrefslogtreecommitdiff
path: root/test/DebugInfo/X86/generate-odr-hash.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-11-26 00:22:37 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-11-26 00:22:37 +0000
commit999cf05d6afa85c235f5c325ff420d5f768d48d8 (patch)
tree6396760b81f261a098a19022f28e01b2d44d4061 /test/DebugInfo/X86/generate-odr-hash.ll
parent0e6ec124d56b3c93dcfca2e117e67575b29c7899 (diff)
downloadllvm-999cf05d6afa85c235f5c325ff420d5f768d48d8.tar.gz
llvm-999cf05d6afa85c235f5c325ff420d5f768d48d8.tar.bz2
llvm-999cf05d6afa85c235f5c325ff420d5f768d48d8.tar.xz
DebugInfo: Avoid emitting pubtype entries for type DIEs that just indirect to a type unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86/generate-odr-hash.ll')
-rw-r--r--test/DebugInfo/X86/generate-odr-hash.ll12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/DebugInfo/X86/generate-odr-hash.ll b/test/DebugInfo/X86/generate-odr-hash.ll
index f167c86180..8ff367fa67 100644
--- a/test/DebugInfo/X86/generate-odr-hash.ll
+++ b/test/DebugInfo/X86/generate-odr-hash.ll
@@ -1,8 +1,8 @@
; REQUIRES: object-emission
; RUN: llc %s -o %t -filetype=obj -O0 -generate-type-units -generate-odr-hash -mtriple=x86_64-unknown-linux-gnu
-; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
-;
+; RUN: llvm-dwarfdump %t | FileCheck %s
+
; Generated from:
; struct bar {};
@@ -43,6 +43,8 @@
; wombat wom;
+; CHECK-LABEL: .debug_info contents:
+
; Check that we generate a hash for bar and the value.
; CHECK-LABEL: DW_AT_GNU_odr_signature [DW_FORM_data8] (0x200520c0d5b90eff)
; CHECK: DW_TAG_structure_type
@@ -89,6 +91,12 @@
; 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.
+; CHECK-LABEL: .debug_pubtypes contents:
+; CHECK-NEXT: unit_offset = 0x00000000
+; CHECK-NEXT: Offset
+; CHECK-NEXT: {{^$}}
+
%struct.bar = type { i8 }
%"class.echidna::capybara::mongoose::fluffy" = type { i32, i32 }
%"struct.<anonymous namespace>::walrus" = type { i8 }