1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/DebugInfo
Zachary Turner f5c6b23b50 [llvm-pdbutil] rewrite the "raw" output style.
After some internal discussions, we agreed that the raw output style had
outlived its usefulness. It was originally created before we had even
thought of dumping to YAML, and it was intended to give us some insight
into the internals of a PDB file. Now we have YAML mode which does
almost exactly this but is more powerful in that it can round-trip back
to a PDB, which the raw mode could not do. So the raw mode had become
purely a maintenance burden.

One option was to just delete it. However, its original goal was to be
as readable as possible while staying close to the "metal" - i.e.
presenting the output in a way that maps directly to the underlying file
format. We don't actually need that last requirement anymore since it's
covered by the yaml mode, so we could repurpose "raw" mode to actually
just be as readable as possible.

This patch implements about 80% of the functionality previously in raw
mode, but in a completely different style that is more akin to what
cvdump outputs. Records are very compressed, often times appearing on
just one line. One nice thing about this is that it makes full record
matching easier, because you can grep for indices, names, and leaf types
on a single line often.

See the tests for some examples of what the new output looks like.

Note that this patch actually regresses the functionality of raw mode in
a few areas, but only because the patch was already unreasonably large
and going 100% would have been even worse. Specifically, this patch is
missing:

The ability to dump module debug subsections (checksums, lines, etc)
The ability to dump section headers
Aside from that everything is here. While goign through the tests fixing
them all up, I found many duplicate tests. They've been deleted. In
subsequent patches I will go through and re-add the missing
functionality.

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

llvm-svn: 305495
2017-06-15 19:34:41 +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 IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
Generic Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
Inputs Removal of accidental duplication in test assembly file. NFC. 2017-06-14 23:55:39 +00:00
Lanai
Mips [MC] Set SHT_MIPS_DWARF section type for all .debug_* sections on MIPS 2017-03-10 08:22:20 +00:00
MIR Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
PDB [llvm-pdbutil] rewrite the "raw" output style. 2017-06-15 19:34:41 +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 [SystemZ] Save/restore r6 and r7 if function contains landing pad. 2016-06-28 14:13:11 +00:00
WebAssembly [WebAssembly] Convert the remaining unit tests to the new wasm-object-file target. 2017-02-28 23:37:04 +00:00
X86 Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
arm-relocs.test
debuglineinfo-macho.test
debuglineinfo.test
debugmacinfo.test
dwarfdump-64-bit-dwarf.test
dwarfdump-accel.test Synchronize LLVM and clang's ObjCDeclSpec::ObjCPropertyAttributeKind. 2016-07-14 00:41:18 +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 Synchronize LLVM and clang's ObjCDeclSpec::ObjCPropertyAttributeKind. 2016-07-14 00:41:18 +00:00
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] Adding support for the DWARF v5 string offsets table (consumer/reader part only). 2017-06-06 01:22:34 +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
llvm-symbolizer-split-dwarf-empty.test
llvm-symbolizer-zlib.test
llvm-symbolizer.test libDebugInfo: Support symbolizing using DWP files 2017-05-23 06:48:53 +00:00
macro_link.ll [Debug Info] Added a LIT test that covers the fix committed in rL277290. 2016-08-11 07:22:53 +00:00
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