mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Add a missing DICompileUnit to testcase.
llvm-svn: 266019
This commit is contained in:
parent
bf78d0ed58
commit
907584df51
@ -1,15 +1,14 @@
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -disable-namedmd-remove > /dev/null
|
||||
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
||||
; REQUIRES: loadable_module
|
||||
|
||||
; Bugpoint should keep the call's metadata attached to the call.
|
||||
|
||||
; CHECK: call void @foo(), !dbg ![[LOC:[0-9]+]], !attach ![[CALL:[0-9]+]]
|
||||
; CHECK: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
|
||||
; CHECK: ![[SCOPE]] = distinct !DISubprogram(name: "test"
|
||||
; CHECK-SAME: file: ![[FILE:[0-9]+]]
|
||||
; CHECK: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
|
||||
; CHECK: ![[CALL]] = !{!"the call to foo"}
|
||||
; CHECK-DAG: ![[LOC]] = !DILocation(line: 104, column: 105, scope: ![[SCOPE:[0-9]+]])
|
||||
; CHECK-DAG: ![[SCOPE]] = distinct !DISubprogram(name: "test",{{.*}}file: ![[FILE:[0-9]+]]
|
||||
; CHECK-DAG: ![[FILE]] = !DIFile(filename: "source.c", directory: "/dir")
|
||||
; CHECK-DAG: ![[CALL]] = !{!"the call to foo"}
|
||||
|
||||
%rust_task = type {}
|
||||
define void @test(i32* %a, i8* %b) {
|
||||
@ -24,6 +23,7 @@ define void @test(i32* %a, i8* %b) {
|
||||
declare void @foo()
|
||||
|
||||
!llvm.module.flags = !{!17}
|
||||
!llvm.dbg.cu = !{!8}
|
||||
|
||||
!0 = !{!"boring"}
|
||||
!1 = !{!"uninteresting"}
|
||||
@ -31,6 +31,7 @@ declare void @foo()
|
||||
!3 = !{!"noise"}
|
||||
!4 = !{!"filler"}
|
||||
|
||||
!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !15, subprograms: !{!9})
|
||||
!9 = distinct !DISubprogram(name: "test", file: !15)
|
||||
!10 = !DILocation(line: 100, column: 101, scope: !9)
|
||||
!11 = !DILocation(line: 102, column: 103, scope: !9)
|
||||
|
Loading…
Reference in New Issue
Block a user