mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-20 19:04:10 -04:00
ccefd88065
Packing the flags into one bitcode word will save effort in adding new flags in the future. Differential Revision: https://reviews.llvm.org/D54755 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347806 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
853 B
LLVM
19 lines
853 B
LLVM
; RUN: llvm-as -disable-output %s 2>&1 | FileCheck %s
|
|
|
|
; Make sure we emit this diagnostic only once (which means we don't visit the
|
|
; same DISubprogram twice.
|
|
; CHECK: subprogram definitions must have a compile unit
|
|
; CHECK-NEXT: !3 = distinct !DISubprogram(name: "patatino", scope: null, spFlags: DISPFlagDefinition)
|
|
; CHECK-NOT: subprogram definitions must have a compile unit
|
|
; CHECK-NOT: !3 = distinct !DISubprogram(name: "patatino", scope: null, spFlags: DISPFlagDefinition)
|
|
; CHECK: warning: ignoring invalid debug info
|
|
|
|
define void @tinkywinky() !dbg !3 { ret void }
|
|
|
|
!llvm.module.flags = !{!4}
|
|
!llvm.dbg.cu = !{!0}
|
|
!0 = distinct !DICompileUnit(language: 12, file: !1)
|
|
!1 = !DIFile(filename: "/home/davide", directory: "/home/davide")
|
|
!3 = distinct !DISubprogram(name: "patatino", isDefinition: true)
|
|
!4 = !{i32 2, !"Debug Info Version", i32 3}
|