mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
c61bc48acb
Since r241097, `DIBuilder` has only created distinct `DICompileUnit`s. The backend is liable to start relying on that (if it hasn't already), so make uniquable `DICompileUnit`s illegal and automatically upgrade old bitcode. This is a nice cleanup, since we can remove an unnecessary `DenseSet` (and the associated uniquing info) from `LLVMContextImpl`. Almost all the testcases were updated with this script: git grep -e '= !DICompileUnit' -l -- test | grep -v test/Bitcode | xargs sed -i '' -e 's,= !DICompileUnit,= distinct !DICompileUnit,' I imagine something similar should work for out-of-tree testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243885 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
940 B
LLVM
24 lines
940 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
!llvm.dbg.sp = !{!0}
|
|
!llvm.dbg.cu = !{!5}
|
|
!llvm.module.flags = !{!6}
|
|
|
|
!0 = !DISubprogram(name: "bar", linkageName: "_ZN3foo3barEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagProtected | DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !4, scope: !1, type: !2)
|
|
!1 = !DIFile(filename: "/foo", directory: "bar.cpp")
|
|
!2 = !DISubroutineType(types: !3)
|
|
!3 = !{null}
|
|
!4 = !DIFile(filename: "/foo", directory: "bar.cpp")
|
|
!5 = distinct !DICompileUnit(language: DW_LANG_C99, isOptimized: true, emissionKind: 0, file: !4, enums: !{}, retainedTypes: !{})
|
|
|
|
define <{i32, i32}> @f1() {
|
|
; CHECK: !dbgx ![[NUMBER:[0-9]+]]
|
|
%r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
|
|
; CHECK: !dbgx ![[NUMBER]]
|
|
%e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
|
|
ret <{ i32, i32 }> %r
|
|
}
|
|
|
|
; CHECK: DIFlagProtected
|
|
!6 = !{i32 1, !"Debug Info Version", i32 3}
|