diff options
author | Reid Kleckner <rnk@google.com> | 2019-05-09 21:21:22 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-05-09 21:21:22 +0000 |
commit | 4c64256b516b1e29d354f0dee3b021fe7c5f6146 (patch) | |
tree | f60479199632439ec5f1edd54f88c2a07dfde1f4 /lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py | |
parent | df225764b7d5d96ead8787bc7d1667160d8bbffe (diff) | |
download | bcm5719-llvm-4c64256b516b1e29d354f0dee3b021fe7c5f6146.tar.gz bcm5719-llvm-4c64256b516b1e29d354f0dee3b021fe7c5f6146.zip |
[COFF] Simplify Chunk::writeTo and remove OutputSectionOff, NFC
Summary:
Prior to this change, every implementation of writeTo would add
OutputSectionOff to the output section buffer start before writing data.
Instead, do this math in the caller, so that it can be written once
instead of many times.
The output section offset is always equivalent to the difference between
the chunk RVA and the output section RVA, so we can replace the one
remaining usage of OutputSectionOff with that subtraction.
This doesn't change the size of SectionChunk because of alignment
requirements, but I will rearrange the fields in a follow-up change to
accomplish that.
Reviewers: ruiu, aganea
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61696
llvm-svn: 360376
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions