1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/unittests/DebugInfo/DWARF
Jonas Devlieghere c0a6317d37 [ObjectYAML] Add ability for DWARFYAML to calculate DIE lengths
This patch adds the ability for the ObjectYAML DWARFEmitter to calculate
the lengths of DIEs. This is accomplished by creating a DIEFixupVisitor
class which traverses the DWARF DIEs to calculate and fix up the lengths
in the Compile Unit header.

The DIEFixupVisitor can be extended in the future to enable more complex
fix ups which will enable simplified YAML string representations.

This is also very useful when using the YAML format in unit tests
because you no longer need to know the length of the compile unit when
writing the YAML string.

Differential commandeered from Chris Bieneman (beanz)

Differential revision: https://reviews.llvm.org/D30666

llvm-svn: 330421
2018-04-20 12:33:49 +00:00
..
CMakeLists.txt [DWARF] Don't attempt to parse line tables at invalid offsets 2018-03-08 10:53:34 +00:00
DWARFDebugInfoTest.cpp [ObjectYAML] Add ability for DWARFYAML to calculate DIE lengths 2018-04-20 12:33:49 +00:00
DWARFDebugLineTest.cpp [DWARF] Don't attempt to parse line tables at invalid offsets 2018-03-08 10:53:34 +00:00
DWARFFormValueTest.cpp DWARF: Unify form size handling code 2018-03-14 09:39:54 +00:00
DwarfGenerator.cpp Rename *CommandFlags.def to *CommandFlags.inc 2018-04-11 18:49:37 +00:00
DwarfGenerator.h Recommit "[ELF] - Add ability for DWARFContextInMemory to exit early when any error happen." 2017-06-28 08:21:19 +00:00
DwarfUtils.cpp [DWARF] Don't attempt to parse line tables at invalid offsets 2018-03-08 10:53:34 +00:00
DwarfUtils.h [DWARF] Don't attempt to parse line tables at invalid offsets 2018-03-08 10:53:34 +00:00