diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-04-11 23:30:29 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-04-11 23:30:29 +0000 |
commit | 74c0c09666b0ac3fedf55e306c4948971ea6fb4d (patch) | |
tree | d905a179d877ada5c9170cb3972bcdbebb06907c | |
parent | ae280e54a9865b82930a777b14735d7438630fa4 (diff) | |
download | bcm5719-llvm-74c0c09666b0ac3fedf55e306c4948971ea6fb4d.tar.gz bcm5719-llvm-74c0c09666b0ac3fedf55e306c4948971ea6fb4d.zip |
Add a missing DICompileUnit to testcase.
llvm-svn: 266019
-rw-r--r-- | llvm/test/BugPoint/metadata.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/test/BugPoint/metadata.ll b/llvm/test/BugPoint/metadata.ll index 44d109aa007..de4587a6354 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) |