diff options
| author | Fangrui Song <i@maskray.me> | 2021-10-27 09:51:06 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2021-10-27 09:51:07 -0700 |
| commit | ecc93ed2d738910449e0106eb487490e784c7d2b (patch) | |
| tree | ca1aec4c17acfb17f5e3c1a233330afc6ebeeb6e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 156f10c840a07034a6bd638b5912054100365741 (diff) | |
[ELF] Replace InputBaseSection::{areRelocsRela,firstRelocation,numRelocation} with relSecIdx
For `InputSection` `.foo`, its `InputBaseSection::{areRelocsRela,firstRelocation,numRelocation}` basically
encode the information of `.rel[a].foo`. However, one uint32_t (the relocation section index)
suffices. See the implementation of `relsOrRelas`.
This change decreases sizeof(InputSection) from 184 to 176 on 64-bit Linux.
The maximum resident set size linking a large application (1.2G output) decreases by 0.39%.
Differential Revision: https://reviews.llvm.org/D112513
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
