diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-04-11 20:58:57 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-04-11 20:58:57 +0000 |
| commit | 115edcaec1697f193baa68dafde802c81afd1c87 (patch) | |
| tree | 725ffa5d48fec9dbab1702ab22fd1e356813cf7d /llvm/test | |
| parent | 6917b4ac5a0146ffc9e67805624fbf072f32b6d0 (diff) | |
| download | bcm5719-llvm-115edcaec1697f193baa68dafde802c81afd1c87.tar.gz bcm5719-llvm-115edcaec1697f193baa68dafde802c81afd1c87.zip | |
Add missing DICompileUnit to this testcase
llvm-svn: 265995
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/BugPoint/metadata.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Linker/Inputs/mdlocation.ll | 4 | ||||
| -rw-r--r-- | llvm/test/Linker/mdlocation.ll | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/BugPoint/metadata.ll b/llvm/test/BugPoint/metadata.ll index 44d109aa007..cd0de61e6be 100644 --- a/llvm/test/BugPoint/metadata.ll +++ b/llvm/test/BugPoint/metadata.ll @@ -24,6 +24,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 +32,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) diff --git a/llvm/test/Linker/Inputs/mdlocation.ll b/llvm/test/Linker/Inputs/mdlocation.ll index 9c2f65d0a59..7ba19ffc76b 100644 --- a/llvm/test/Linker/Inputs/mdlocation.ll +++ b/llvm/test/Linker/Inputs/mdlocation.ll @@ -7,3 +7,7 @@ ; Test distinct nodes. !4 = distinct !DILocation(line: 3, column: 7, scope: !0) !5 = distinct !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !4) + +!llvm.dbg.cu = !{!6} +!6 = distinct !DICompileUnit(language: DW_LANG_C89, file: !7, subprograms: !{!0}) +!7 = !DIFile(filename: "source.c", directory: "/dir") diff --git a/llvm/test/Linker/mdlocation.ll b/llvm/test/Linker/mdlocation.ll index b42058bac60..7d8d165755b 100644 --- a/llvm/test/Linker/mdlocation.ll +++ b/llvm/test/Linker/mdlocation.ll @@ -24,3 +24,7 @@ ; Test distinct nodes. !4 = distinct !DILocation(line: 3, column: 7, scope: !0) !5 = distinct !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !4) + +!llvm.dbg.cu = !{!6} +!6 = distinct !DICompileUnit(language: DW_LANG_C89, file: !7, subprograms: !{!0}) +!7 = !DIFile(filename: "source.c", directory: "/dir") |

