From: Manman Ren Date: Thu, 10 Oct 2013 18:13:17 +0000 (+0000) Subject: Add comments to debug info testing case. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=75a3ad485cb97556145483eb06c88782a7c83697;p=oota-llvm.git Add comments to debug info testing case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192376 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/DebugInfo/tu-composite.ll b/test/DebugInfo/tu-composite.ll index 8515b38456e..54bc3bc9b7f 100644 --- a/test/DebugInfo/tu-composite.ll +++ b/test/DebugInfo/tu-composite.ll @@ -3,14 +3,18 @@ ; RUN: llc -filetype=obj -O0 < %s > %t ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s ; CHECK: [[TYPE:.*]]: DW_TAG_structure_type +; Make sure we correctly handle containing type of a struct being a type identifier. ; CHECK-NEXT: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) +; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "C") ; CHECK: [[SP:.*]]: DW_TAG_subprogram +; Make sure we correctly handle containing type of a subprogram being a type identifier. ; CHECK: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) ; CHECK: [[TYPE2:.*]]: DW_TAG_structure_type ; CHECK: DW_TAG_structure_type ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "D") ; CHECK: DW_TAG_member ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "a") +; Make sure we correctly handle context of a struct being a type identifier. ; CHECK: DW_TAG_structure_type ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "Nested") ; CHECK: DW_TAG_structure_type @@ -18,17 +22,21 @@ ; CHECK-NEXT: DW_AT_declaration [DW_FORM_flag] (0x01) ; CHECK: DW_TAG_structure_type ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "virt") +; Make sure we correctly handle type of a template_type being a type identifier. ; CHECK: DW_TAG_template_type_parameter ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "T") +; Make sure we correctly handle derived-from of a typedef being a type identifier. ; CHECK: DW_TAG_typedef ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz2") +; Make sure we correctly handle derived-from of a pointer type being a type identifier. ; CHECK: DW_TAG_pointer_type ; CHECK: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) ; CHECK: DW_TAG_typedef ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz") +; Make sure we correctly handle derived-from of an array type being a type identifier. ; CHECK: DW_TAG_array_type ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) ; IR generated from clang -g with the following source: