mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +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
26 lines
1.3 KiB
LLVM
26 lines
1.3 KiB
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
|
|
; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
|
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
|
|
|
!0 = distinct !{}
|
|
!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
|
|
!2 = distinct !{}
|
|
!3 = distinct !{}
|
|
!4 = distinct !{}
|
|
!5 = distinct !{}
|
|
!6 = distinct !{}
|
|
|
|
; CHECK: !7 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: 3, enums: !2, retainedTypes: !3, subprograms: !4, globals: !5, imports: !6, dwoId: 42)
|
|
!7 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
|
|
isOptimized: true, flags: "-O2", runtimeVersion: 2,
|
|
splitDebugFilename: "abc.debug", emissionKind: 3,
|
|
enums: !2, retainedTypes: !3, subprograms: !4,
|
|
globals: !5, imports: !6, dwoId: 42)
|
|
|
|
; CHECK: !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0)
|
|
!8 = distinct !DICompileUnit(language: 12, file: !1, producer: "",
|
|
isOptimized: false, flags: "", runtimeVersion: 0,
|
|
splitDebugFilename: "", emissionKind: 0)
|