[llvm] r266019 - Add a missing DICompileUnit to testcase.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 16:30:29 PDT 2016


Author: adrian
Date: Mon Apr 11 18:30:29 2016
New Revision: 266019

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

Modified:
    llvm/trunk/test/BugPoint/metadata.ll

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




More information about the llvm-commits mailing list