llvm-project/llvm/test/DebugInfo
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
..
AArch64 LiveDebugValues: Assume calls never clobber SP. 2017-03-03 01:08:25 +00:00
AMDGPU AMDGPU: Fix assert in scheduler 2017-04-27 03:22:44 +00:00
ARM PR32382: Fix emitting complex DWARF expressions. 2017-04-18 01:21:53 +00:00
COFF [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
Generic Debug Info: Add a file: field to DIImportedEntity. 2017-07-19 00:09:54 +00:00
Inputs [DWARF] Fixing a bug with processing of DWARF v5 indexed strings in Mach-O objects. 2017-07-13 01:03:28 +00:00
Lanai
MIR Fix a crash in DwarfDebug::validThroughout. 2017-06-20 21:08:52 +00:00
Mips [MC] Set SHT_MIPS_DWARF section type for all .debug_* sections on MIPS 2017-03-10 08:22:20 +00:00
PDB Fix pdbdump-headers.test after TPI hash changes 2017-07-18 00:44:10 +00:00
PowerPC Move Split DWARF handling to an MC option/command line argument rather than using metadata 2017-04-21 23:35:26 +00:00
Sparc
SystemZ
WebAssembly [WebAssembly] Convert the remaining unit tests to the new wasm-object-file target. 2017-02-28 23:37:04 +00:00
X86 Debug Info: Add a file: field to DIImportedEntity. 2017-07-19 00:09:54 +00:00
arm-relocs.test
debuglineinfo-macho.test
debuglineinfo.test
debugmacinfo.test
dwarfdump-64-bit-dwarf.test
dwarfdump-accel.test [DWARF] Added verification checks for the .apple_names section. 2017-06-29 20:13:05 +00:00
dwarfdump-debug-frame-simple.test
dwarfdump-debug-loc-simple.test
dwarfdump-decompression-error.test [llvm-dwarfdump] - Print an error message if section decompression failed. 2017-05-05 10:52:39 +00:00
dwarfdump-dump-flags.test
dwarfdump-dump-gdbindex.test [llvm-dwarfdump] - Change format for .gdb_index dump. 2017-04-27 10:00:13 +00:00
dwarfdump-dwp.test
dwarfdump-header.test [DWARFv5] Parse new line-table header format. 2017-05-02 21:40:47 +00:00
dwarfdump-implicit-const.test DebugInfo: support for DW_FORM_implicit_const 2017-01-10 21:18:26 +00:00
dwarfdump-invalid.test
dwarfdump-line-dwo.test
dwarfdump-macho-relocs.test
dwarfdump-macho-universal.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-ranges.test
dwarfdump-str-offsets-dwp.test Adding one test that I forgot to include with the commit for https://reviews.llvm.org/D32779. 2017-06-13 00:42:03 +00:00
dwarfdump-str-offsets-invalid.test [DWARF] Adding support for the DWARF v5 string offsets table (consumer/reader part only). 2017-06-06 01:22:34 +00:00
dwarfdump-str-offsets.test [DWARF] Fixing a bug with processing of DWARF v5 indexed strings in Mach-O objects. 2017-07-13 01:03:28 +00:00
dwarfdump-type-units.test dwarfdump: -summarize-types: print a short summary (unqualified type name, hash, length) of type units rather than dumping contents 2016-10-18 21:09:48 +00:00
dwarfdump-zlib.test dwarfdump: Handle relocs to zlib (.zdebug*) compressed sections 2017-06-10 19:32:50 +00:00
dwo.ll DebugInfo: Do not emit empty CUs 2017-05-26 18:52:56 +00:00
invalid-relocations.test [DWARF] - Add testcase for checking message about broken relocations. 2017-07-11 12:29:07 +00:00
llvm-symbolizer-split-dwarf-empty.test
llvm-symbolizer-zlib.test
llvm-symbolizer.test [LLVM] Get rid of white spaces in file names in a DebugInfo test. NFC 2017-07-10 16:05:18 +00:00
macro_link.ll
member-pointers.o
missing-abstract-variable.o
omit-empty.ll Mark a test as requiring a default triple 2017-05-31 01:42:55 +00:00
skeletoncu.ll DebugInfo: Do not emit empty CUs 2017-05-26 18:52:56 +00:00
strip-DIGlobalVariable.ll Teach llvm::StripDebugInfo() about global variable !dbg attachments. 2016-10-10 17:53:33 +00:00
strip-loop-metadata.ll Improve DebugInfo/strip-loop-metadata.ll test 2017-03-31 17:51:12 +00:00
typeunit-header.test [DWARF] Fix a parsing issue with type unit headers. 2017-05-09 19:38:38 +00:00