Adrian Prantl 9563b5a5e1 Debug Info: Add a file: field to DIImportedEntity.
DIImportedEntity has a line number, but not a file field. To determine
the decl_line/decl_file we combine the line number from the
DIImportedEntity with the file from the DIImportedEntity's scope. This
does not work correctly when the parent scope is a DINamespace or a
DIModule, both of which do not have a source file.

This patch adds a file field to DIImportedEntity to unambiguously
identify the source location of the using/import declaration.  Most
testcase updates are mechanical, the interesting one is the removal of
the FIXME in test/DebugInfo/Generic/namespace.ll.

This fixes PR33822. See https://bugs.llvm.org/show_bug.cgi?id=33822
for more context.

<rdar://problem/33357889>
https://bugs.llvm.org/show_bug.cgi?id=33822

Differential Revision: https://reviews.llvm.org/D35583

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308398 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-19 00:09:54 +00:00
..
2016-01-20 22:05:50 +00:00
2015-12-10 14:19:35 +00:00
2016-03-24 00:06:03 +00:00
2015-12-01 15:19:48 +00:00
2015-12-01 15:19:48 +00:00
2015-12-01 15:19:48 +00:00
2015-11-27 23:21:45 +00:00
2015-12-07 16:31:41 +00:00
2015-11-30 18:54:24 +00:00
2015-12-01 15:46:46 +00:00
2015-12-07 16:31:41 +00:00
2015-11-29 14:53:06 +00:00
2015-12-07 16:31:41 +00:00
2015-12-07 16:31:41 +00:00
2015-12-07 16:31:41 +00:00