summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2018-11-09 19:06:09 +0000
committerPaul Robinson <paul.robinson@sony.com>2018-11-09 19:06:09 +0000
commitddbde9a4add367c12b4ff8bda5e7a6b351b645c6 (patch)
tree29081d6179b75582c07b6cd5eb4e00fc3bd592a2 /llvm/test/DebugInfo
parent731ea7dbc1da611beed2e492446df3408c85e638 (diff)
downloadbcm5719-llvm-ddbde9a4add367c12b4ff8bda5e7a6b351b645c6.tar.gz
bcm5719-llvm-ddbde9a4add367c12b4ff8bda5e7a6b351b645c6.zip
[DWARFv5] Emit normal type units in .debug_info comdats.
Differential Revision: https://reviews.llvm.org/D54282 llvm-svn: 346540
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/string-offsets-multiple-cus.ll55
1 files changed, 28 insertions, 27 deletions
diff --git a/llvm/test/DebugInfo/X86/string-offsets-multiple-cus.ll b/llvm/test/DebugInfo/X86/string-offsets-multiple-cus.ll
index 2f479fa5af0..7851dbfefd5 100644
--- a/llvm/test/DebugInfo/X86/string-offsets-multiple-cus.ll
+++ b/llvm/test/DebugInfo/X86/string-offsets-multiple-cus.ll
@@ -31,39 +31,13 @@
; with the correct offsets. Check that strings referenced by compile units 2 and 3
; are displayed correctly.
;
-; CU 1
; BOTH: .debug_info contents:
-; BOTH-NOT: .contents:
-; BOTH: DW_TAG_compile_unit
-; BOTH-NOT: {{DW_TAG|NULL}}
-; BOTH: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF:[0-9a-f]+]])
-;
-; CU 2
-; BOTH-NOT: contents:
-; BOTH: DW_TAG_compile_unit
-; BOTH-NOT: {{DW_TAG|NULL}}
-; BOTH: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
-; BOTH-NOT: NULL
-; BOTH: DW_TAG_variable
-; BOTH-NOT: {{DW_TAG|NULL}}
-; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (00000009) string = "glob2")
-;
-; CU 3
-; BOTH-NOT: contents:
-; BOTH: DW_TAG_compile_unit
-; BOTH-NOT: {{DW_TAG|NULL}}
-; BOTH: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
-; BOTH-NOT: NULL
-; BOTH: DW_TAG_variable
-; BOTH-NOT: {{DW_TAG|NULL}}
-; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (0000000f) string = "glob3")
;
; Verify that all 3 type units have the proper DW_AT_str_offsets_base attribute.
-; TYPEUNITS: .debug_types contents:
; TYPEUNITS-NOT: contents:
; TYPEUNITS: DW_TAG_type_unit
; TYPEUNITS-NOT: {{DW_TAG|NULL}}
-; TYPEUNITS: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
+; TYPEUNITS: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF:[0-9a-f]+]])
; TYPEUNITS-NOT: NULL
; TYPEUNITS: DW_TAG_enumerator
; TYPEUNITS-NOT: NULL
@@ -84,6 +58,33 @@
; TYPEUNITS-NOT: NULL
; TYPEUNITS: DW_TAG_enumeration_type
; TYPEUNITS: DW_AT_name [DW_FORM_strx1] ( indexed (00000013) string = "E3")
+
+; CU 1
+; BOTH-NOT: .contents:
+; BOTH: DW_TAG_compile_unit
+; BOTH-NOT: {{DW_TAG|NULL}}
+; DEFAULT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF:[0-9a-f]+]])
+; TYPEUNITS: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
+;
+; CU 2
+; BOTH-NOT: contents:
+; BOTH: DW_TAG_compile_unit
+; BOTH-NOT: {{DW_TAG|NULL}}
+; BOTH: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
+; BOTH-NOT: NULL
+; BOTH: DW_TAG_variable
+; BOTH-NOT: {{DW_TAG|NULL}}
+; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (00000009) string = "glob2")
+;
+; CU 3
+; BOTH-NOT: contents:
+; BOTH: DW_TAG_compile_unit
+; BOTH-NOT: {{DW_TAG|NULL}}
+; BOTH: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
+; BOTH-NOT: NULL
+; BOTH: DW_TAG_variable
+; BOTH-NOT: {{DW_TAG|NULL}}
+; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (0000000f) string = "glob3")
;
; Extract the offset of a string to verify that it is referenced in the string
; offsets section.
OpenPOWER on IntegriCloud