llvm-project/llvm/lib/ObjectYAML
Zachary Turner ebd3ae8371 [CodeView] Properly align symbol records on read/write.
Object files have symbol records not aligned to any particular
boundary (e.g. 1-byte aligned), while PDB files have symbol
records padded to 4-byte aligned boundaries.  Since they share
the same reading / writing code, we have to provide an option to
specify the alignment and propagate it up to the producer or
consumer who knows what the alignment is supposed to be for the
given container type.

Added a test for this by modifying the existing PDB -> YAML -> PDB
round-tripping code to round trip symbol records as well as types.

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

llvm-svn: 304484
2017-06-01 21:52:41 +00:00
..
CMakeLists.txt [ObjectYAML] Split CodeViewYAML into 3 pieces. 2017-05-31 04:17:13 +00:00
COFFYAML.cpp [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
CodeViewYAMLDebugSections.cpp [ObjectYAML] Split CodeViewYAML into 3 pieces. 2017-05-31 04:17:13 +00:00
CodeViewYAMLSymbols.cpp [CodeView] Properly align symbol records on read/write. 2017-06-01 21:52:41 +00:00
CodeViewYAMLTypes.cpp [ObjectYAML] Split CodeViewYAML into 3 pieces. 2017-05-31 04:17:13 +00:00
DWARFEmitter.cpp [ObjectYAML] Add support for DWARF5 Unit header 2017-03-07 18:50:58 +00:00
DWARFVisitor.cpp [ObjectYAML] Fix issue with DWARF2 AddrSize 8 2017-03-07 21:34:35 +00:00
DWARFVisitor.h [ObjectYAML] NFC. Refactor DWARFYAML CompileUnit dump code 2017-03-06 20:52:12 +00:00
DWARFYAML.cpp [ObjectYAML] Add support for DWARF5 Unit header 2017-03-07 18:50:58 +00:00
ELFYAML.cpp Make this file clang-format friendly and clang-format it. 2017-01-31 21:11:12 +00:00
LLVMBuild.txt [CodeView] Move CodeView YAML code to ObjectYAML. 2017-05-30 21:53:05 +00:00
MachOYAML.cpp Add LC_BUILD_VERSION load command 2017-01-23 20:07:55 +00:00
ObjectYAML.cpp [WebAssembly] Improve support for WebAssembly binary format 2017-03-30 19:44:09 +00:00
WasmYAML.cpp [WebAssembly] Fix build error in wasm YAML code 2017-05-10 00:14:04 +00:00
YAML.cpp