diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-24 06:52:01 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-24 06:52:01 +0000 |
commit | a61a99b62e84f99229d51fbe1980ada2f823b235 (patch) | |
tree | 04ec1cde376cf6893085f467fa58b21e12f41ce1 /test/Bitcode | |
parent | c8d2e3b5cbd9936029e124c6ee3ea1d08574f10b (diff) |
BitcodeReader: Fix some holes in upgrade from r267296
Add tests for some missing cases to bitcode upgrade in r267296.
- DICompositeType with an 'elements:' field, which will cause it to be
involved in a cycle after the upgrade.
- A DIDerivedType that references a class in 'extraData:'.
I updated test/Bitcode/dityperefs-3.8.ll with the missing cases and
regenerated test/Bitcode/dityperefs-3.8.ll.bc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/dityperefs-3.8.ll | 10 | ||||
-rw-r--r-- | test/Bitcode/dityperefs-3.8.ll.bc | bin | 840 -> 888 bytes |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/Bitcode/dityperefs-3.8.ll b/test/Bitcode/dityperefs-3.8.ll index 4025f21f0cd6..6c953f28aba7 100644 --- a/test/Bitcode/dityperefs-3.8.ll +++ b/test/Bitcode/dityperefs-3.8.ll @@ -2,7 +2,7 @@ ; RUN: verify-uselistorder %s.bc ; Establish a stable order. -!named = !{!0, !1, !2, !3, !4, !6, !7, !8, !9, !10, !11, !12} +!named = !{!0, !1, !2, !3, !4, !6, !7, !8, !9, !10, !11, !12, !13, !14, !15, !16} ; CHECK: !0 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") ; CHECK-NEXT: !1 = !DICompositeType(tag: DW_TAG_structure_type, name: "T1"{{.*}}, identifier: "T1") @@ -17,6 +17,10 @@ ; CHECK-NEXT: !10 = !DIGlobalVariable(name: "G",{{.*}} type: !1,{{.*}} variable: i32* @G1) ; CHECK-NEXT: !11 = !DITemplateValueParameter(type: !1, value: i32* @G1) ; CHECK-NEXT: !12 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "T2", scope: !0, entity: !1) +; CHECK-NEXT: !13 = !DICompositeType(tag: DW_TAG_structure_type, name: "T3", file: !0, elements: !14, identifier: "T3") +; CHECK-NEXT: !14 = !{!15} +; CHECK-NEXT: !15 = !DISubprogram(scope: !13, +; CHECK-NEXT: !16 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type,{{.*}} extraData: !13) !0 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") !1 = !DICompositeType(tag: DW_TAG_structure_type, name: "T1", file: !0, identifier: "T1") @@ -31,5 +35,9 @@ !10 = !DIGlobalVariable(name: "G", type: !"T1", isDefinition: false, variable: i32* @G1) !11 = !DITemplateValueParameter(type: !"T1", value: i32* @G1) !12 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "T2", scope: !0, entity: !"T1") +!13 = !DICompositeType(tag: DW_TAG_structure_type, name: "T3", file: !0, elements: !14, identifier: "T3") +!14 = !{!15} +!15 = !DISubprogram(scope: !"T3", isDefinition: false) +!16 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !4, extraData: !"T3") @G1 = global i32 0 diff --git a/test/Bitcode/dityperefs-3.8.ll.bc b/test/Bitcode/dityperefs-3.8.ll.bc Binary files differindex 0808389c7c56..4ec0bca70fa4 100644 --- a/test/Bitcode/dityperefs-3.8.ll.bc +++ b/test/Bitcode/dityperefs-3.8.ll.bc |