llvm.org GIT mirror llvm / 5ed848e
Add a missing DICompileUnit to testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266019 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 3 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
None ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
0 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -disable-namedmd-remove > /dev/null
11 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
22 ; REQUIRES: loadable_module
33
44 ; Bugpoint should keep the call's metadata attached to the call.
55
66 ; CHECK: call void @foo(), !dbg ![[LOC:[0-9]+]], !attach ![[CALL:[0-9]+]]
7 ; CHECK: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
8 ; CHECK: ![[SCOPE]] = distinct !DISubprogram(name: "test"
9 ; CHECK-SAME: file: ![[FILE:[0-9]+]]
10 ; CHECK: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
11 ; CHECK: ![[CALL]] = !{!"the call to foo"}
7 ; CHECK-DAG: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
8 ; CHECK-DAG: ![[SCOPE]] = distinct !DISubprogram(name: "test",{{.*}}file: ![[FILE:[0-9]+]]
9 ; CHECK-DAG: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
10 ; CHECK-DAG: ![[CALL]] = !{!"the call to foo"}
1211
1312 %rust_task = type {}
1413 define void @test(i32* %a, i8* %b) {
2322 declare void @foo()
2423
2524 !llvm.module.flags = !{!17}
25 !llvm.dbg.cu = !{!8}
2626
2727 !0 = !{!"boring"}
2828 !1 = !{!"uninteresting"}
3030 !3 = !{!"noise"}
3131 !4 = !{!"filler"}
3232
33 !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !15, subprograms: !{!9})
3334 !9 = distinct !DISubprogram(name: "test", file: !15)
3435 !10 = !DILocation(line: 100, column: 101, scope: !9)
3536 !11 = !DILocation(line: 102, column: 103, scope: !9)