summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/parameters.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-28 22:25:46 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-28 22:25:46 +0000
commitfed4f399d3a9b8381d9d32e7aa928855b11d7485 (patch)
tree6b842659a0d73b8c897febc016f92df12d4304b8 /llvm/test/DebugInfo/X86/parameters.ll
parentc20ccd2c0209fdaae7f7efe066c4b59b4ca46842 (diff)
downloadbcm5719-llvm-fed4f399d3a9b8381d9d32e7aa928855b11d7485.tar.gz
bcm5719-llvm-fed4f399d3a9b8381d9d32e7aa928855b11d7485.zip
Remove line and file from DINamespace.
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 llvm-svn: 301706
Diffstat (limited to 'llvm/test/DebugInfo/X86/parameters.ll')
-rw-r--r--llvm/test/DebugInfo/X86/parameters.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/X86/parameters.ll b/llvm/test/DebugInfo/X86/parameters.ll
index 38c40dfd6c4..a8494f9e963 100644
--- a/llvm/test/DebugInfo/X86/parameters.ll
+++ b/llvm/test/DebugInfo/X86/parameters.ll
@@ -90,7 +90,7 @@ attributes #2 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n
!1 = !DIFile(filename: "pass.cpp", directory: "/tmp")
!2 = !{}
!4 = distinct !DISubprogram(name: "func", linkageName: "_ZN7pr147634funcENS_3fooE", line: 6, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 6, file: !1, scope: !5, type: !6, variables: !2)
-!5 = !DINamespace(name: "pr14763", line: 1, file: !1, scope: null)
+!5 = !DINamespace(name: "pr14763", scope: null)
!6 = !DISubroutineType(types: !7)
!7 = !{!8, !8}
!8 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", line: 2, size: 8, align: 8, file: !1, scope: !5, elements: !9)
OpenPOWER on IntegriCloud