From: Adrian Prantl Date: Mon, 11 Apr 2016 23:30:29 +0000 (+0000) Subject: Add a missing DICompileUnit to testcase. X-Git-Tag: llvmorg-3.9.0-rc1~9401 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74c0c09666b0ac3fedf55e306c4948971ea6fb4d;p=platform%2Fupstream%2Fllvm.git Add a missing DICompileUnit to testcase. llvm-svn: 266019 --- diff --git a/llvm/test/BugPoint/metadata.ll b/llvm/test/BugPoint/metadata.ll index 44d109a..de4587a 100644 --- a/llvm/test/BugPoint/metadata.ll +++ b/llvm/test/BugPoint/metadata.ll @@ -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)