llvm-project/llvm/lib/Bitcode/Reader
Adrian Prantl d63bfd218b 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

llvm-svn: 308398
2017-07-19 00:09:54 +00:00
..
BitReader.cpp Add explicit (void) cast to unused unique_ptr::release() results 2016-11-14 07:26:17 +00:00
BitcodeReader.cpp Enhance synchscope representation 2017-07-11 22:23:00 +00:00
BitstreamReader.cpp Change BitstreamCursor::skipRecord to return the record code (NFC) 2017-01-04 22:54:14 +00:00
CMakeLists.txt Refactor BitcodeReader: move Metadata and ValueId handling in their own class/file 2016-12-12 19:34:26 +00:00
LLVMBuild.txt
MetadataLoader.cpp Debug Info: Add a file: field to DIImportedEntity. 2017-07-19 00:09:54 +00:00
MetadataLoader.h PR32382: Fix emitting complex DWARF expressions. 2017-04-18 01:21:53 +00:00
ValueList.cpp [IR] De-virtualize ~Value to save a vptr 2017-05-18 17:24:10 +00:00
ValueList.h Rename WeakVH to WeakTrackingVH; NFC 2017-05-01 17:07:49 +00:00