diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-04-28 22:25:46 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-04-28 22:25:46 +0000 |
| commit | fed4f399d3a9b8381d9d32e7aa928855b11d7485 (patch) | |
| tree | 6b842659a0d73b8c897febc016f92df12d4304b8 /llvm/test/Assembler/dinamespace.ll | |
| parent | c20ccd2c0209fdaae7f7efe066c4b59b4ca46842 (diff) | |
| download | bcm5719-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/Assembler/dinamespace.ll')
| -rw-r--r-- | llvm/test/Assembler/dinamespace.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Assembler/dinamespace.ll b/llvm/test/Assembler/dinamespace.ll index 346fcfb1111..af20c19f131 100644 --- a/llvm/test/Assembler/dinamespace.ll +++ b/llvm/test/Assembler/dinamespace.ll @@ -8,11 +8,11 @@ !1 = distinct !{} !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -; CHECK: !3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) -!3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) +; CHECK: !3 = !DINamespace(name: "Namespace", scope: !0) +!3 = !DINamespace(name: "Namespace", scope: !0) ; CHECK: !4 = !DINamespace(scope: !0) -!4 = !DINamespace(name: "", scope: !0, file: null, line: 0) +!4 = !DINamespace(name: "", scope: !0) !5 = !DINamespace(scope: !0) !6 = !DINamespace(scope: !0, exportSymbols: false) ; CHECK: !5 = !DINamespace(scope: !0, exportSymbols: true) |

