forked from OSchip/llvm-project
Make these two tests resilient in the face of compile unit size
changes. llvm-svn: 196444
This commit is contained in:
parent
d091dc179d
commit
c4dd56b9cf
|
@ -44,7 +44,7 @@
|
||||||
; wombat wom;
|
; wombat wom;
|
||||||
|
|
||||||
; CHECK-LABEL: .debug_info contents:
|
; CHECK-LABEL: .debug_info contents:
|
||||||
|
; CHECK: Compile Unit: length = [[CU_SIZE:[0-9a-f]+]]
|
||||||
; Check that we generate a hash for bar and the value.
|
; Check that we generate a hash for bar and the value.
|
||||||
; CHECK-LABEL: DW_AT_GNU_odr_signature [DW_FORM_data8] (0x200520c0d5b90eff)
|
; CHECK-LABEL: DW_AT_GNU_odr_signature [DW_FORM_data8] (0x200520c0d5b90eff)
|
||||||
; CHECK: DW_TAG_structure_type
|
; CHECK: DW_TAG_structure_type
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
; it happens to be unambiguous at the moment, but it's hardly ideal.
|
; it happens to be unambiguous at the moment, but it's hardly ideal.
|
||||||
; CHECK-LABEL: .debug_pubtypes contents:
|
; CHECK-LABEL: .debug_pubtypes contents:
|
||||||
; Don't emit pubtype entries for type DIEs in the compile unit that just indirect to a type unit.
|
; 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: unit_size = [[CU_SIZE]]
|
||||||
; CHECK-NEXT: Offset Name
|
; CHECK-NEXT: Offset Name
|
||||||
; Type unit for 'bar'
|
; Type unit for 'bar'
|
||||||
; CHECK-NEXT: unit_size = 0x0000001f
|
; CHECK-NEXT: unit_size = 0x0000001f
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
; ASM-NEXT: .asciz "C" # External Name
|
; ASM-NEXT: .asciz "C" # External Name
|
||||||
|
|
||||||
; CHECK: .debug_info contents:
|
; CHECK: .debug_info contents:
|
||||||
|
; CHECK: Compile Unit: length = [[UNIT_SIZE:[0-9a-f]+]]
|
||||||
; CHECK: DW_AT_GNU_pubnames [DW_FORM_sec_offset] (0x00000000)
|
; CHECK: DW_AT_GNU_pubnames [DW_FORM_sec_offset] (0x00000000)
|
||||||
; CHECK: DW_AT_GNU_pubtypes [DW_FORM_sec_offset] (0x00000000)
|
; CHECK: DW_AT_GNU_pubtypes [DW_FORM_sec_offset] (0x00000000)
|
||||||
|
|
||||||
|
@ -105,7 +106,7 @@
|
||||||
; CHECK-NEXT: DW_AT_name {{.*}} "global_function"
|
; CHECK-NEXT: DW_AT_name {{.*}} "global_function"
|
||||||
|
|
||||||
; CHECK-LABEL: .debug_gnu_pubnames contents:
|
; CHECK-LABEL: .debug_gnu_pubnames contents:
|
||||||
; CHECK-NEXT: length = 0x000000e7 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x0000017b
|
; CHECK-NEXT: length = 0x000000e7 version = 0x0002 unit_offset = 0x00000000 unit_size = [[UNIT_SIZE]]
|
||||||
; CHECK-NEXT: Offset Linkage Kind Name
|
; CHECK-NEXT: Offset Linkage Kind Name
|
||||||
; CHECK-DAG: [[GLOBAL_FUNC]] EXTERNAL FUNCTION "global_function"
|
; CHECK-DAG: [[GLOBAL_FUNC]] EXTERNAL FUNCTION "global_function"
|
||||||
; CHECK-DAG: [[NS]] EXTERNAL TYPE "ns"
|
; CHECK-DAG: [[NS]] EXTERNAL TYPE "ns"
|
||||||
|
@ -125,6 +126,7 @@
|
||||||
; CHECK-DAG: [[INT]] STATIC TYPE "int"
|
; CHECK-DAG: [[INT]] STATIC TYPE "int"
|
||||||
|
|
||||||
; DWARF3: .debug_info contents:
|
; DWARF3: .debug_info contents:
|
||||||
|
; DWARF3: Compile Unit: length = [[UNIT_SIZE:[0-9a-f]+]]
|
||||||
; DWARF3: DW_AT_GNU_pubnames [DW_FORM_data4] (0x00000000)
|
; DWARF3: DW_AT_GNU_pubnames [DW_FORM_data4] (0x00000000)
|
||||||
; DWARF3: DW_AT_GNU_pubtypes [DW_FORM_data4] (0x00000000)
|
; DWARF3: DW_AT_GNU_pubtypes [DW_FORM_data4] (0x00000000)
|
||||||
|
|
||||||
|
@ -184,7 +186,7 @@
|
||||||
; DWARF3-NEXT: DW_AT_name {{.*}} "global_function"
|
; DWARF3-NEXT: DW_AT_name {{.*}} "global_function"
|
||||||
|
|
||||||
; DWARF3-LABEL: .debug_gnu_pubnames contents:
|
; DWARF3-LABEL: .debug_gnu_pubnames contents:
|
||||||
; DWARF3-NEXT: length = 0x000000e7 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x0000018b
|
; DWARF3-NEXT: length = 0x000000e7 version = 0x0002 unit_offset = 0x00000000 unit_size = [[UNIT_SIZE]]
|
||||||
; DWARF3-NEXT: Offset Linkage Kind Name
|
; DWARF3-NEXT: Offset Linkage Kind Name
|
||||||
; DWARF3-DAG: [[GLOBAL_FUNC]] EXTERNAL FUNCTION "global_function"
|
; DWARF3-DAG: [[GLOBAL_FUNC]] EXTERNAL FUNCTION "global_function"
|
||||||
; DWARF3-DAG: [[NS]] EXTERNAL TYPE "ns"
|
; DWARF3-DAG: [[NS]] EXTERNAL TYPE "ns"
|
||||||
|
|
Loading…
Reference in New Issue