1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/lib/ObjectYAML
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 Update obj2yaml and yaml2obj for .debug$H section. 2017-12-06 18:58:48 +00:00
CodeViewYAMLDebugSections.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
CodeViewYAMLSymbols.cpp Fix uninitialized read error reported by MSAN. 2018-01-08 21:38:50 +00:00
CodeViewYAMLTypeHashing.cpp [CodeView] Teach clang to emit the .debug$H COFF section. 2017-12-13 22:33:58 +00:00
CodeViewYAMLTypes.cpp Fix line endings (CR/LF -> LF) introduced by rL329613 2018-04-10 00:09:15 +00:00
COFFYAML.cpp [Debuginfo][COFF] Minimal serialization support for precompiled types records 2018-04-09 20:17:56 +00:00
DWARFEmitter.cpp [ObjectYAML] Add ability for DWARFYAML to calculate DIE lengths 2018-04-20 12:33:49 +00:00
DWARFVisitor.cpp
DWARFVisitor.h
DWARFYAML.cpp
ELFYAML.cpp Reland "[DebugInfo] Support DWARF expressions in eh_frame" 2018-03-08 00:46:53 +00:00
LLVMBuild.txt
MachOYAML.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
ObjectYAML.cpp
WasmYAML.cpp [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
YAML.cpp