1
- ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
1
+ ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -disable-namedmd-remove > /dev/null
2
2
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
3
3
; REQUIRES: loadable_module
4
4
5
5
; Bugpoint should keep the call's metadata attached to the call.
6
6
7
7
; CHECK: call void @foo(), !dbg ![[LOC:[0-9]+]], !attach ![[CALL:[0-9]+]]
8
- ; CHECK: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
9
- ; CHECK: ![[SCOPE]] = distinct !DISubprogram(name: "test"
10
- ; CHECK-SAME: file: ![[FILE:[0-9]+]]
11
- ; CHECK: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
12
- ; CHECK: ![[CALL]] = !{!"the call to foo"}
8
+ ; CHECK-DAG: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
9
+ ; CHECK-DAG: ![[SCOPE]] = distinct !DISubprogram(name: "test",{{.*}}file: ![[FILE:[0-9]+]]
10
+ ; CHECK-DAG: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
11
+ ; CHECK-DAG: ![[CALL]] = !{!"the call to foo"}
13
12
14
13
%rust_task = type {}
15
14
define void @test (i32* %a , i8* %b ) {
@@ -24,13 +23,15 @@ define void @test(i32* %a, i8* %b) {
24
23
declare void @foo ()
25
24
26
25
!llvm.module.flags = !{!17 }
26
+ !llvm.dbg.cu = !{!8 }
27
27
28
28
!0 = !{!"boring" }
29
29
!1 = !{!"uninteresting" }
30
30
!2 = !{!"the call to foo" }
31
31
!3 = !{!"noise" }
32
32
!4 = !{!"filler" }
33
33
34
+ !8 = distinct !DICompileUnit (language: DW_LANG_C99, file: !15 , subprograms: !{!9 })
34
35
!9 = distinct !DISubprogram (name: "test" , file: !15 )
35
36
!10 = !DILocation (line: 100 , column: 101 , scope: !9 )
36
37
!11 = !DILocation (line: 102 , column: 103 , scope: !9 )
0 commit comments