llvm.org GIT mirror llvm / 47ab860
Add an llc testcase analogous to test/LTO/X86/strip-debug-info.ll rdar://problem/37963669 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326491 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 2 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as -disable-verify %s -o %t.bc
1 ; ---- Full LTO ---------------------------------------------
2 ; RUN: llc -filetype=asm -o - %t.bc 2>&1 | FileCheck %s
3 ; CHECK-NOT: Broken module found
4 ; CHECK: warning{{.*}} ignoring invalid debug info
5 ; CHECK-NOT: Broken module found
6 ; CHECK: foo
7 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-apple-macosx10.12"
9
10 declare void @bar()
11
12 define void @foo() {
13 call void @bar()
14 ret void
15 }
16
17 !llvm.module.flags = !{!0}
18 !llvm.dbg.cu = !{!1}
19
20 !0 = !{i32 2, !"Debug Info Version", i32 3}
21 !1 = !DIFile(filename: "broken", directory: "")