[llvm] r265995 - Add missing DICompileUnit to this testcase

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 13:58:57 PDT 2016


Author: adrian
Date: Mon Apr 11 15:58:57 2016
New Revision: 265995

URL: http://llvm.org/viewvc/llvm-project?rev=265995&view=rev
Log:
Add missing DICompileUnit to this testcase

Modified:
    llvm/trunk/test/BugPoint/metadata.ll
    llvm/trunk/test/Linker/Inputs/mdlocation.ll
    llvm/trunk/test/Linker/mdlocation.ll

Modified: llvm/trunk/test/BugPoint/metadata.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/metadata.ll?rev=265995&r1=265994&r2=265995&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/metadata.ll (original)
+++ llvm/trunk/test/BugPoint/metadata.ll Mon Apr 11 15:58:57 2016
@@ -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)

Modified: llvm/trunk/test/Linker/Inputs/mdlocation.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/mdlocation.ll?rev=265995&r1=265994&r2=265995&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/mdlocation.ll (original)
+++ llvm/trunk/test/Linker/Inputs/mdlocation.ll Mon Apr 11 15:58:57 2016
@@ -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")

Modified: llvm/trunk/test/Linker/mdlocation.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/mdlocation.ll?rev=265995&r1=265994&r2=265995&view=diff
==============================================================================
--- llvm/trunk/test/Linker/mdlocation.ll (original)
+++ llvm/trunk/test/Linker/mdlocation.ll Mon Apr 11 15:58:57 2016
@@ -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")




More information about the llvm-commits mailing list