mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ab0f993654
Currently we never dump the `sh_offset` key. Though it sometimes an important information. To reduce the noise this patch implements the following logic: 1) The "Offset" key for the first section is always emitted. 2) If we can derive the offset for a next section naturally, then the "Offset" key is omitted. By "naturally" I mean that section[X] offset is expected to be: ``` offsetOf(section[X]) == alignTo(section[X - 1].sh_offset + section[X - 1].sh_size, section[X].sh_addralign) ``` So, when it has the expected value, we omit it from the output. Differential revision: https://reviews.llvm.org/D91152 |
||
---|---|---|
.. | ||
ArchiveEmitter.cpp | ||
ArchiveYAML.cpp | ||
CMakeLists.txt | ||
CodeViewYAMLDebugSections.cpp | ||
CodeViewYAMLSymbols.cpp | ||
CodeViewYAMLTypeHashing.cpp | ||
CodeViewYAMLTypes.cpp | ||
COFFEmitter.cpp | ||
COFFYAML.cpp | ||
DWARFEmitter.cpp | ||
DWARFYAML.cpp | ||
ELFEmitter.cpp | ||
ELFYAML.cpp | ||
MachOEmitter.cpp | ||
MachOYAML.cpp | ||
MinidumpEmitter.cpp | ||
MinidumpYAML.cpp | ||
ObjectYAML.cpp | ||
WasmEmitter.cpp | ||
WasmYAML.cpp | ||
XCOFFYAML.cpp | ||
yaml2obj.cpp | ||
YAML.cpp |