[ELF] --gdb-index: fix memory usage regression after D74773
authorFangrui Song <maskray@google.com>
Thu, 12 Mar 2020 23:44:47 +0000 (16:44 -0700)
committerFangrui Song <maskray@google.com>
Thu, 12 Mar 2020 23:55:30 +0000 (16:55 -0700)
commit0bb362c1649912d3a328dd01c700626d0a9f5a2c
treea0f4459dedf49ad16522823cbb8489ebaae0cc86
parentaf7fc8c1bbcb380610451be59c022595bd7ba4bd
[ELF] --gdb-index: fix memory usage regression after D74773

On an internal target,

* Before D74773: time -f '%M' => 18275680
* After D74773:  time -f '%M' => 22088964

This patch restores to the status before D74773.
lld/ELF/SyntheticSections.cpp