diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-12-22 00:45:21 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-12-22 00:45:21 +0000 |
commit | 1eadba1c8c813aa7f53c784711ace70daa73b474 (patch) | |
tree | 33e988c4a144a9c6862d46dafdab31c3198f0a1f /llvm/test/Transforms/Util | |
parent | 58c19106429a98c3f3f5c7d36282774432326784 (diff) | |
download | bcm5719-llvm-1eadba1c8c813aa7f53c784711ace70daa73b474.tar.gz bcm5719-llvm-1eadba1c8c813aa7f53c784711ace70daa73b474.zip |
Renumber testcase metadata nodes after r290153.
This patch renumbers the metadata nodes in debug info testcases after
https://reviews.llvm.org/D26769. This is a separate patch because it
causes so much churn. This was implemented with a python script that
pipes the testcases through llvm-as - | llvm-dis - and then goes
through the original and new output side-by side to insert all
comments at a close-enough location.
Differential Revision: https://reviews.llvm.org/D27765
llvm-svn: 290292
Diffstat (limited to 'llvm/test/Transforms/Util')
-rw-r--r-- | llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll b/llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll index f21710a1b12..4afab40818a 100644 --- a/llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll +++ b/llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll @@ -26,67 +26,69 @@ declare void @_ZN1BC2Ev(%struct.B*) unnamed_addr ; Function Attrs: nounwind readnone declare void @llvm.dbg.declare(metadata, metadata, metadata) #0 +; CHECK: define ; Function Attrs: inlinehint nounwind ssp uwtable -; CHECK: define -define linkonce_odr void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr #1 align 2 !dbg !24 { +define linkonce_odr void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr #1 align 2 !dbg !25 { entry: %this.addr = alloca %struct.B*, align 8 store %struct.B* %this, %struct.B** %this.addr, align 8 ; CHECK-NOT: @llvm.dbg.declare - call void @llvm.dbg.declare(metadata %struct.B** %this.addr, metadata !29, metadata !31), !dbg !32 + call void @llvm.dbg.declare(metadata %struct.B** %this.addr, metadata !30, metadata !32), !dbg !33 %this1 = load %struct.B*, %struct.B** %this.addr, align 8 + call void @_ZN1BC2Ev(%struct.B* %this1) #2, !dbg !34 + ret void, !dbg !34 ; CHECK: call void @_ZN1BC2Ev(%struct.B* %this1){{.*}} !dbg ! - call void @_ZN1BC2Ev(%struct.B* %this1) #2, !dbg !33 - ret void, !dbg !33 } attributes #0 = { nounwind readnone } attributes #1 = { inlinehint nounwind ssp uwtable } attributes #2 = { nounwind } -!llvm.dbg.cu = !{!1} -!llvm.module.flags = !{!20, !21, !22} -!llvm.ident = !{!23} +!llvm.dbg.cu = !{!2} +!llvm.module.flags = !{!21, !22, !23} +!llvm.ident = !{!24} ; CHECK-NEG-NOT: !DI{{Basic|Composite|Derived}}Type -!0 = distinct !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "b", scope: !1, file: !2, line: 5, type: !5, isLocal: false, isDefinition: true)) -!1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 4.0.0 (trunk 282583) (llvm/trunk 282611)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !4) -!2 = !DIFile(filename: "t.cpp", directory: "/") -!3 = !{} -!4 = !{!0} -!5 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !2, line: 4, size: 64, align: 64, elements: !6, vtableHolder: !8, identifier: "_ZTS1B") -!6 = !{!7} -!7 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !5, baseType: !8) -!8 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !2, line: 1, size: 64, align: 64, elements: !9, vtableHolder: !8, identifier: "_ZTS1A") -!9 = !{!10, !16} -!10 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", scope: !2, file: !2, baseType: !11, size: 64, flags: DIFlagArtificial) -!11 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !12, size: 64) -!12 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: !13, size: 64) -!13 = !DISubroutineType(types: !14) -!14 = !{!15} -!15 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!0 = distinct !DIGlobalVariableExpression(var: !1) +!1 = !DIGlobalVariable(name: "b", scope: !2, file: !3, line: 5, type: !6, isLocal: false, isDefinition: true) +!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 4.0.0 (trunk 282583) (llvm/trunk 282611)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) +!3 = !DIFile(filename: "t.cpp", directory: "/") +!4 = !{} +!5 = !{!0} +!6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !3, line: 4, size: 64, align: 64, elements: !7, vtableHolder: !9, identifier: "_ZTS1B") +!7 = !{!8} +!8 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !6, baseType: !9) +!9 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !3, line: 1, size: 64, align: 64, elements: !10, vtableHolder: !9, identifier: "_ZTS1A") +!10 = !{!11, !17} +!11 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", scope: !3, file: !3, baseType: !12, size: 64, flags: DIFlagArtificial) +!12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64) +!13 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: !14, size: 64) +!14 = !DISubroutineType(types: !15) +!15 = !{!16} +!16 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!17 = !DISubprogram(name: "~A", scope: !9, file: !3, line: 2, type: !18, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !9, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped, isOptimized: false) +!18 = !DISubroutineType(types: !19) +!19 = !{null, !20} +!20 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !9, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer) +!21 = !{i32 2, !"Dwarf Version", i32 4} +!22 = !{i32 2, !"Debug Info Version", i32 3} +!23 = !{i32 1, !"PIC Level", i32 2} +!24 = !{!"clang version 4.0.0 (trunk 282583) (llvm/trunk 282611)"} ; Only referenced by the type system. ; CHECK-NEG-NOT: !DISubprogram(name: "~A" -!16 = !DISubprogram(name: "~A", scope: !8, file: !2, line: 2, type: !17, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !8, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped, isOptimized: false) -!17 = !DISubroutineType(types: !18) -!18 = !{null, !19} -!19 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !8, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer) -!20 = !{i32 2, !"Dwarf Version", i32 4} -!21 = !{i32 2, !"Debug Info Version", i32 3} -!22 = !{i32 1, !"PIC Level", i32 2} -!23 = !{!"clang version 4.0.0 (trunk 282583) (llvm/trunk 282611)"} +!25 = distinct !DISubprogram(name: "B", linkageName: "_ZN1BC1Ev", scope: !6, file: !3, line: 4, type: !26, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !2, declaration: !29, variables: !4) +!26 = !DISubroutineType(types: !27) +!27 = !{null, !28} +!28 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer) +!29 = !DISubprogram(name: "B", scope: !6, type: !26, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false) +!30 = !DILocalVariable(name: "this", arg: 1, scope: !25, type: !31, flags: DIFlagArtificial | DIFlagObjectPointer) +!31 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64, align: 64) +!32 = !DIExpression() +!33 = !DILocation(line: 0, scope: !25) +!34 = !DILocation(line: 4, column: 8, scope: !25) + ; CHECK: !DISubprogram(name: "B", scope: ![[FILE:.*]], file: ![[FILE]], ; CHECK-NOT: containingType: -!24 = distinct !DISubprogram(name: "B", linkageName: "_ZN1BC1Ev", scope: !5, file: !2, line: 4, type: !25, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !1, declaration: !28, variables: !3) -!25 = !DISubroutineType(types: !26) -!26 = !{null, !27} -!27 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !5, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer) ; CHECK-NEG-NOT: !DISubprogram(name: "B", {{.*}}, isDefinition: false -!28 = !DISubprogram(name: "B", scope: !5, type: !25, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false) -!29 = !DILocalVariable(name: "this", arg: 1, scope: !24, type: !30, flags: DIFlagArtificial | DIFlagObjectPointer) -!30 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !5, size: 64, align: 64) -!31 = !DIExpression() -!32 = !DILocation(line: 0, scope: !24) -!33 = !DILocation(line: 4, column: 8, scope: !24) |