llvm.org GIT mirror llvm / 1d8c02b
Debug info: Unique types before emitting them to DWARF, where applicable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203983 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 6 years ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
956956 DIScope Context = resolve(Ty.getContext());
957957 DIE *ContextDIE = getOrCreateContextDIE(Context);
958958 assert(ContextDIE);
959
960 // Unique the type. This is a noop if the type has no unique identifier.
961 Ty = DIType(resolve(Ty.getRef()));
959962
960963 DIE *TyDIE = getDIE(Ty);
961964 if (TyDIE)
2727 ; CHECK-NEXT: DW_AT_MIPS_linkage_name {{.*}} "_ZL3barv"
2828 ; CHECK: DW_TAG_class_type
2929 ; CHECK-NEXT: DW_AT_name {{.*}} "A"
30 ; CHECK-NOT: DW_TAG
31 ; CHECK: DW_TAG_member
32 ; CHECK-NEXT: DW_AT_name {{.*}} "data"
33 ; CHECK-NOT: DW_TAG
3034 ; CHECK: DW_TAG_subprogram
3135 ; CHECK-NEXT: DW_AT_MIPS_linkage_name {{.*}} "_ZN1A6getFooEv"
3236 ; CHECK-NEXT: DW_AT_name {{.*}} "getFoo"