summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-10-27 09:51:06 -0700
committerFangrui Song <i@maskray.me>2021-10-27 09:51:07 -0700
commitecc93ed2d738910449e0106eb487490e784c7d2b (patch)
treeca1aec4c17acfb17f5e3c1a233330afc6ebeeb6e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent156f10c840a07034a6bd638b5912054100365741 (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