Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/DebugInfo/COFF/no-cus.ll

raw
1 ; RUN: llvm-as < %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -o %t.spv
3 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4
5 ; RUN: llc -mtriple=%triple < %t.ll -filetype=obj -o %t.o
6 ; RUN: llvm-objdump --section-headers %t.o | FileCheck %s
7
8 ; Don't emit debug info in this scenario and don't crash.
9
10 ; CHECK-NOT: .debug$S
11 ; CHECK: .text
12 ; CHECK-NOT: .debug$S
13
14 ; ModuleID = 't.cpp'
15 source_filename = "t.cpp"
16 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
17 target triple = "spir64-unknown-unknown"
18
19 define void @f() {
20 entry:
21 ret void
22 }
23
24 !llvm.module.flags = !{!0, !1}
25 !llvm.ident = !{!2}
26
27 !0 = !{i32 2, !"CodeView", i32 1}
28 !1 = !{i32 1, !"PIC Level", i32 2}
29 !2 = !{!"clang version 5.0.0 "}