mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
841400b968
Fixes the issue highlighted in http://lists.llvm.org/pipermail/cfe-dev/2014-June/037500.html. The DW_AT_decl_file and DW_AT_decl_line attributes on namespaces can prevent LLVM from uniquing types that are in the same namespace. They also don't carry any meaningful information. rdar://problem/17484998 Differential Revision: https://reviews.llvm.org/D32648 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301706 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
723 B
LLVM
20 lines
723 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
|
|
; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !4, !5}
|
|
!named = !{!0, !1, !2, !3, !4, !5, !6, !7}
|
|
|
|
!0 = !DIFile(filename: "file.cpp", directory: "/path/to/dir")
|
|
!1 = distinct !{}
|
|
!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
|
|
|
|
; CHECK: !3 = !DINamespace(name: "Namespace", scope: !0)
|
|
!3 = !DINamespace(name: "Namespace", scope: !0)
|
|
|
|
; CHECK: !4 = !DINamespace(scope: !0)
|
|
!4 = !DINamespace(name: "", scope: !0)
|
|
!5 = !DINamespace(scope: !0)
|
|
!6 = !DINamespace(scope: !0, exportSymbols: false)
|
|
; CHECK: !5 = !DINamespace(scope: !0, exportSymbols: true)
|
|
!7 = !DINamespace(name: "", scope: !0, exportSymbols: true)
|