diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-10-10 17:53:33 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-10-10 17:53:33 +0000 |
| commit | 3bfe1093dfba160a9f5beb4dd6d78f6f6a9a7ac2 (patch) | |
| tree | 409d2f1401e1942426420979d743835e4f839109 /llvm/test/Bitcode | |
| parent | 5789dfafdd46b4822159153169136deffb686a66 (diff) | |
| download | bcm5719-llvm-3bfe1093dfba160a9f5beb4dd6d78f6f6a9a7ac2.tar.gz bcm5719-llvm-3bfe1093dfba160a9f5beb4dd6d78f6f6a9a7ac2.zip | |
Teach llvm::StripDebugInfo() about global variable !dbg attachments.
This is a regression introduced by the global variable ownership
reversal performed in r281284.
rdar://problem/28448075
llvm-svn: 283784
Diffstat (limited to 'llvm/test/Bitcode')
| -rw-r--r-- | llvm/test/Bitcode/dityperefs-3.8.ll | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/llvm/test/Bitcode/dityperefs-3.8.ll b/llvm/test/Bitcode/dityperefs-3.8.ll index 2bbe1a81e68..09225d4eba3 100644 --- a/llvm/test/Bitcode/dityperefs-3.8.ll +++ b/llvm/test/Bitcode/dityperefs-3.8.ll @@ -4,22 +4,24 @@ ; Establish a stable order. !named = !{!0, !1, !2, !3, !4, !6, !7, !8, !9, !10, !11, !12, !13, !14, !15, !16} -; CHECK: @G1 = global i32 0, !dbg !0 +; Since this is incomplete debug info the !dbg attachement will be stripped. +; This doesn't matter for what is being tested here. +; CHECK: @G1 = global i32 0 -; CHECK: !0 = !DIGlobalVariable(name: "G",{{.*}} type: !1, +; CHECK: !0 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") ; CHECK-NEXT: !1 = !DICompositeType(tag: DW_TAG_structure_type, name: "T1"{{.*}}, identifier: "T1") -; CHECK-NEXT: !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -; CHECK-NEXT: !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "T2", scope: !1{{.*}}, baseType: !1, vtableHolder: !1, identifier: "T2") -; CHECK-NEXT: !4 = !DIDerivedType(tag: DW_TAG_member, name: "M1", scope: !1{{.*}}, baseType: !3) -; CHECK-NEXT: !5 = !DISubroutineType(types: !6) -; CHECK-NEXT: !6 = !{!1, !3} -; CHECK-NEXT: !7 = !DISubprogram(scope: !1,{{.*}} containingType: !1{{[,)]}} -; CHECK-NEXT: !8 = !DILocalVariable(name: "V1", scope: !7, type: !3) -; CHECK-NEXT: !9 = !DIObjCProperty(name: "P1", type: !1) -; CHECK-NEXT: !10 = !DITemplateTypeParameter(type: !1) +; CHECK-NEXT: !2 = !DICompositeType(tag: DW_TAG_structure_type, name: "T2", scope: !1{{.*}}, baseType: !1, vtableHolder: !1, identifier: "T2") +; CHECK-NEXT: !3 = !DIDerivedType(tag: DW_TAG_member, name: "M1", scope: !1{{.*}}, baseType: !2) +; CHECK-NEXT: !4 = !DISubroutineType(types: !5) +; CHECK-NEXT: !5 = !{!1, !2} +; CHECK-NEXT: !6 = !DISubprogram(scope: !1,{{.*}} containingType: !1{{[,)]}} +; CHECK-NEXT: !7 = !DILocalVariable(name: "V1", scope: !6, type: !2) +; CHECK-NEXT: !8 = !DIObjCProperty(name: "P1", type: !1) +; CHECK-NEXT: !9 = !DITemplateTypeParameter(type: !1) +; CHECK-NEXT: !10 = !DIGlobalVariable(name: "G",{{.*}} type: !1, ; CHECK-NEXT: !11 = !DITemplateValueParameter(type: !1, value: i32* @G1) -; CHECK-NEXT: !12 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "T2", scope: !2, entity: !1) -; CHECK-NEXT: !13 = !DICompositeType(tag: DW_TAG_structure_type, name: "T3", file: !2, elements: !14, identifier: "T3") +; 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) |

