Skip to content

Commit 115edca

Browse files
committed
Add missing DICompileUnit to this testcase
llvm-svn: 265995
1 parent 6917b4a commit 115edca

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

llvm/test/BugPoint/metadata.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ define void @test(i32* %a, i8* %b) {
2424
declare void @foo()
2525

2626
!llvm.module.flags = !{!17}
27+
!llvm.dbg.cu = !{!8}
2728

2829
!0 = !{!"boring"}
2930
!1 = !{!"uninteresting"}
3031
!2 = !{!"the call to foo"}
3132
!3 = !{!"noise"}
3233
!4 = !{!"filler"}
3334

35+
!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !15, subprograms: !{!9})
3436
!9 = distinct !DISubprogram(name: "test", file: !15)
3537
!10 = !DILocation(line: 100, column: 101, scope: !9)
3638
!11 = !DILocation(line: 102, column: 103, scope: !9)

llvm/test/Linker/Inputs/mdlocation.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
; Test distinct nodes.
88
!4 = distinct !DILocation(line: 3, column: 7, scope: !0)
99
!5 = distinct !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !4)
10+
11+
!llvm.dbg.cu = !{!6}
12+
!6 = distinct !DICompileUnit(language: DW_LANG_C89, file: !7, subprograms: !{!0})
13+
!7 = !DIFile(filename: "source.c", directory: "/dir")

llvm/test/Linker/mdlocation.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@
2424
; Test distinct nodes.
2525
!4 = distinct !DILocation(line: 3, column: 7, scope: !0)
2626
!5 = distinct !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !4)
27+
28+
!llvm.dbg.cu = !{!6}
29+
!6 = distinct !DICompileUnit(language: DW_LANG_C89, file: !7, subprograms: !{!0})
30+
!7 = !DIFile(filename: "source.c", directory: "/dir")

0 commit comments

Comments
 (0)