diff options
| author | Rui Ueyama <ruiu@google.com> | 2013-07-09 04:44:18 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2013-07-09 04:44:18 +0000 |
| commit | cf68e2a1b117f42c95b1291325266928dccb67d6 (patch) | |
| tree | d7ed5d082ead71f190a01b2e8aa81e1b1bdc2aed /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
| parent | 747bc07bc3c1a89bcd7699655dbb476abced1e35 (diff) | |
| download | llvm-cf68e2a1b117f42c95b1291325266928dccb67d6.zip llvm-cf68e2a1b117f42c95b1291325266928dccb67d6.tar.gz llvm-cf68e2a1b117f42c95b1291325266928dccb67d6.tar.bz2 | |
[PECOFF][Writer] Compute the size of a chunk each time it's added rather than all at once.
Contents of ".reloc" section depends on the addresses of other sections, so
the section cannot be created until all the other sections are created and get
their memory addresses (RVAs). That means that computation of section size
needs to be at least two pass.
Techynically there's no reason to compute it all at once, but instead we can
compute the address of a section as added to the output file. Doing so helps
us to create ".reloc" section.
llvm-svn: 185902
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions
